JoeHacker
mediawiki
https://www.joehacker.com/index.php/Main_Page
MediaWiki 1.43.0
first-letter
Media
Special
Talk
User
User talk
JoeHacker
JoeHacker talk
File
File talk
MediaWiki
MediaWiki talk
Template
Template talk
Help
Help talk
Category
Category talk
Main Page
0
1
1
2009-07-07T15:52:10Z
MediaWiki default
0
wikitext
text/x-wiki
<big>'''MediaWiki has been successfully installed.'''</big>
Consult the [http://meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.
== Getting started ==
* [http://www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]
* [http://www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]
bd962048d95fbb6b6b514885867811db20a5476b
2
1
2009-07-07T17:02:19Z
Joe
2
wikitext
text/x-wiki
Just getting the site going. More stuff will be here soon.
2422bab55b92fc23fde292e90e994e0fbf281a52
13
2
2009-08-16T15:06:42Z
Joe
2
wikitext
text/x-wiki
Just getting the site going. More stuff will be here soon.
I using this site as a scratchpad of things I find cool that make Linux easier. Here are some pages I'm working on.
*[[Ubuntu Tips]]
*[[Fedora 11]]
e5a27255a0828fe1b2c65f8314659546e2f22cf0
14
13
2009-08-16T15:07:36Z
Joe
2
wikitext
text/x-wiki
Just getting the site going. More stuff will be here soon.
I using this site as a scratchpad of things I find cool that make Linux easier. Here are some pages I'm working on.
*[[Ubuntu Tips]]
*[[Fedora 11]]
*[[MySQL]]
9b77b0b7bf5c9eeaa2adea1416a420c58608e1d3
23
14
2009-09-18T22:28:21Z
Joe
2
wikitext
text/x-wiki
Just getting the site going. More stuff will be here soon.
I using this site as a scratchpad of things I find cool that make Linux easier. Here are some pages I'm working on.
*[[Ubuntu Tips]]
*[[Fedora 11]]
*[[MySQL]]
*[[Good Monitoring Tools]]
37ea91ff34b751491e4f96abe01c4a52fee599a2
39
23
2009-10-21T03:01:10Z
Joe
2
wikitext
text/x-wiki
Just getting the site going. More stuff will be here soon.
I using this site as a scratchpad of things I find cool that make Linux easier. Here are some pages I'm working on.
*[[Ubuntu Tips]]
*[[Fedora 11]]
*[[MySQL]]
*[[Good Monitoring Tools]]
*[[Virtualization]]
cca476a0326c062f7540c71475920b6207c9ebc5
44
39
2009-11-03T23:15:14Z
Joe
2
wikitext
text/x-wiki
Just getting the site going. More stuff will be here soon.
I using this site as a scratch pad of things I find cool that make Linux easier. I love playing with different Linux distributions and will document here things that took me a while to figure out and that may be useful to others. Here are some pages I'm working on.
*[[Ubuntu Tips]]
*[[Fedora 11]]
*[[MySQL]]
*[[Good Monitoring Tools]]
*[[Virtualization]]
*[[RHEL]]
*[[OSD Hacks]]
*[[Google fetchmail]]
*[[Seamonkey]]
5b040d5b4de48822b6aa958d20e906cb06341e07
OSD Hacks
0
2
3
2009-07-08T02:07:17Z
Joe
2
Created page with '== General Notes == This pages is for info about the Neuros OSD. I'm not sure if it is mentioned elsewhere, but I had to add the following boot environment variables in order f…'
wikitext
text/x-wiki
== General Notes ==
This pages is for info about the Neuros OSD.
I'm not sure if it is mentioned elsewhere, but I had to add the following boot environment variables in order for nfs boot to work. It should be mentioned in method 1 under dhcp
setenv nfs_serverip your-workstation's-ip
setenv nfs_root /path/to/neuros-bsp/rootfs/fs
These are required in /etc/init.d/mountall.sh for NFS mounts.
----
For an Ubuntu x86_64 system, you need to install the libc6-i386 package in order for the build script to work.
----
== DHCP Booting==
From http://wiki.neurostechnology.com/index.php/Derobert%27s_Guide_to_the_On-Screen_Display:_NetBooting_the_OSD
==== Method 1 ====
''You must perform the [[Derobert's Guide to the On-Screen Display: DHCP Server Setup|optional DHCP server setup]] in order to use this method. This is the preferred method, but is generally only available if you're using a full DHCP server, not a SoHo router. It's not the most common situation.''
This method is very easy, as nearly all the configuration information is stored on the DHCP server. The alternative is to store it all on the OSD as in [[#Method 2|Method 2]] below.
setenv bootargs $(console) root=/dev/nfs rw ip=dhcp $(mem_reserve)
setenv bootcmd dhcp\; bootm
setenv nfs_serverip 192.168.0.1
setenv nfs_root /srv/neuros-osd-rootfs
saveenv
== Reverting to booting from flash ==
If you want to revert to booting from flash, you can just do
setenv bootcmd run cramfs_boot
saveenv
boot
Or you can just boot from flash once by doing
run cramfs_boot
== NFS Mounting Options ==
To mount NFS drives create the following files in /mnt/OSD
rc.user:
#!/bin/sh
sh /mnt/OSD/bootscript.sh &
bootscript.sh:
#!/bin/sh
sleep 10;
mkdir /mnt/tmpfs/mount_CF-card/data/shortcuts/data;
mount -t nfs 192.168.0.1:/data /mnt/tmpfs/media/ext/data/shortcuts/data -o rw,nolock,tcp,nfsvers=3;
8bc9204b1a1e6c60ed9e359b76a9589408a1cc06
Ubuntu Tips
0
3
4
2009-08-13T14:59:42Z
Joe
2
Created page with '== Admin Commands == allow a user to sudo sudo adduser <username> sudo adduser <username> admin == Apache == remake ssl snakeoil cert sudo make-ssl-cert generate-default-sn…'
wikitext
text/x-wiki
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
69b247e6c1b6e05336891407cf5b561ac86ce469
6
4
2009-08-13T15:16:12Z
Joe
2
wikitext
text/x-wiki
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
9dff4dffb3e93187d15497e168b265711bf622ef
7
6
2009-08-13T15:19:19Z
Joe
2
wikitext
text/x-wiki
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
41ba0ca377d78d8440a7ac31669fd038bca244a7
8
7
2009-08-15T07:17:22Z
Joe
2
wikitext
text/x-wiki
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
8ca7f2a1f7c06c3a0ef63a886ba658ddfa3c29f8
9
8
2009-08-15T14:38:02Z
Joe
2
wikitext
text/x-wiki
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
0f386a2915e20e75fed2447fee4c82bb9853aeda
10
9
2009-08-15T16:14:22Z
Joe
2
/* LDAP TLS */
wikitext
text/x-wiki
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
29a7de0602cd425d37c176a9143906686da18fb2
11
10
2009-08-15T16:24:02Z
Joe
2
wikitext
text/x-wiki
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.04/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
d92d10758c922eac378c1f67da498eaddea6cc1a
20
11
2009-08-27T22:46:38Z
Joe
2
wikitext
text/x-wiki
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.04/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
258e5c4ad2daa48cf4451b654a4c3250dc271dee
21
20
2009-09-18T18:24:33Z
Joe
2
/* Links */
wikitext
text/x-wiki
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.04/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
THis one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
5589724584bfd32faecef5940934845b0f7dfc06
25
21
2009-09-21T22:18:58Z
Joe
2
/* Links */
wikitext
text/x-wiki
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.04/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
THis one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
b187b73bd8e7655138a6178c60a6538935227f11
33
25
2009-10-15T23:33:36Z
Joe
2
/* Adding Keys to Apt */
wikitext
text/x-wiki
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.04/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
THis one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
grub-editenv /boot/grub/grubenv set GRUB_CMDLINE_EXTRA=ipv6.disable
grub-mkconfig -o /boot/grub/grub.cfg
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
11ef81e022b02d2ec02f3fedbcddbcaf82757ff1
34
33
2009-10-15T23:35:15Z
Joe
2
/* Disable IPv6 on Karmic 9.10 */
wikitext
text/x-wiki
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.04/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
THis one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option.
grub-editenv /boot/grub/grubenv set GRUB_CMDLINE_EXTRA=ipv6.disable
grub-mkconfig -o /boot/grub/grub.cfg
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
df95bd8c487d86672f8fc692a60f722581f9d594
35
34
2009-10-15T23:39:32Z
Joe
2
/* Disable IPv6 on Karmic 9.10 */
wikitext
text/x-wiki
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.04/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
THis one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option.
grub-editenv /boot/grub/grubenv set GRUB_CMDLINE_EXTRA=ipv6.disable=1
grub-mkconfig -o /boot/grub/grub.cfg
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
f032a730f751967a8ab5039da3b942b265720140
36
35
2009-10-16T00:01:17Z
Joe
2
/* Disable IPv6 on Karmic 9.10 */
wikitext
text/x-wiki
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.04/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
THis one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo grub-mkconfig -o /boot/grub/grub.cfg
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
504c415ce20fd1f32bb0c5611beb35c7b6920f16
37
36
2009-10-16T15:05:58Z
Joe
2
/* Disable IPv6 on Karmic 9.10 */
wikitext
text/x-wiki
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.04/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
THis one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo update-grub
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
f039918ba883b4c990c4d8a3b7078920753ffa9e
41
37
2009-10-31T08:14:08Z
Joe
2
/* Links */
wikitext
text/x-wiki
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.04/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
THis one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo update-grub
== Display Grub2 menu ==
By default, if there is only one OS with grub2, no menu will be displayed.
Comment out the following line in /etc/default/grub
#GRUB_HIDDEN_TIMEOUT=0
This link has everything you want to know about the new grub2 options. http://ubuntuforums.org/showthread.php?t=1195275
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
abb355d8b6d499f82686b0c33d6563c37a09cf86
42
41
2009-11-02T13:26:17Z
Joe
2
/* Disable IPv6 on Karmic 9.10 */
wikitext
text/x-wiki
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.04/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
THis one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option. I know this is a hack, but I only need ipv4 working at this time. In the future I'm sure I will have to undo these changes, but for now they speed up my system.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo update-grub
It also looks like 2 of my favorite apps do DNS AAAA record lookups after ipv6 is disabled. The following removes the AAAA lookup which causes delays in firefox/seamonkey and ssh.
* '''Firefox'''
Edit the config by opening the page about:config and filter for ipv6. Toggle network.dns.disableIPv6 to true.
*'''ssh'''
Edit /etc/ssh/ssh_config or ~/.ssh/config and add the following to the global host
host *
AddressFamily inet
== Display Grub2 menu ==
By default, if there is only one OS with grub2, no menu will be displayed.
Comment out the following line in /etc/default/grub
#GRUB_HIDDEN_TIMEOUT=0
This link has everything you want to know about the new grub2 options. http://ubuntuforums.org/showthread.php?t=1195275
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
d49ef00372e42cd3e383a99c116e2439ec894fdb
43
42
2009-11-02T13:26:49Z
Joe
2
/* Disable IPv6 on Karmic 9.10 */
wikitext
text/x-wiki
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.04/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
THis one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option. I know this is a hack, but I only need ipv4 working at this time. In the future I'm sure I will have to undo these changes, but for now they speed up my system.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo update-grub
It also looks like 2 of my favorite apps do DNS AAAA record lookups after ipv6 is disabled. The following removes the AAAA lookup which causes delays in firefox/seamonkey and ssh.
* '''Firefox'''
Edit the config by opening the page about:config and filter for ipv6. Toggle '''network.dns.disableIPv6''' to '''true'''.
*'''ssh'''
Edit /etc/ssh/ssh_config or ~/.ssh/config and add the following to the global host
host *
AddressFamily inet
== Display Grub2 menu ==
By default, if there is only one OS with grub2, no menu will be displayed.
Comment out the following line in /etc/default/grub
#GRUB_HIDDEN_TIMEOUT=0
This link has everything you want to know about the new grub2 options. http://ubuntuforums.org/showthread.php?t=1195275
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
0b776a08dab2f7dd6e50694b1934816370ea67d2
45
43
2009-11-17T18:51:21Z
Joe
2
/* Apt-cacher-ng */
wikitext
text/x-wiki
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.04/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
This one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
=== VirtualBox Hash sum mitmatch ===
When trying to get virtualbox, I kept seeing errors from apt-get update. I removed the following files and was able to install/upgrade virtualbox.
rm /var/lib/apt/lists/download.virtualbox.org_virtualbox_*
rm /var/lib/apt/lists/partial/download.virtualbox.org_virtualbox_*
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option. I know this is a hack, but I only need ipv4 working at this time. In the future I'm sure I will have to undo these changes, but for now they speed up my system.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo update-grub
It also looks like 2 of my favorite apps do DNS AAAA record lookups after ipv6 is disabled. The following removes the AAAA lookup which causes delays in firefox/seamonkey and ssh.
* '''Firefox'''
Edit the config by opening the page about:config and filter for ipv6. Toggle '''network.dns.disableIPv6''' to '''true'''.
*'''ssh'''
Edit /etc/ssh/ssh_config or ~/.ssh/config and add the following to the global host
host *
AddressFamily inet
== Display Grub2 menu ==
By default, if there is only one OS with grub2, no menu will be displayed.
Comment out the following line in /etc/default/grub
#GRUB_HIDDEN_TIMEOUT=0
This link has everything you want to know about the new grub2 options. http://ubuntuforums.org/showthread.php?t=1195275
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
e148be365eda33aceddb2b698a41a25e8319c8ff
46
45
2009-11-22T15:20:18Z
Joe
2
/* Server Documentation */
wikitext
text/x-wiki
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.10/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
This one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
=== VirtualBox Hash sum mitmatch ===
When trying to get virtualbox, I kept seeing errors from apt-get update. I removed the following files and was able to install/upgrade virtualbox.
rm /var/lib/apt/lists/download.virtualbox.org_virtualbox_*
rm /var/lib/apt/lists/partial/download.virtualbox.org_virtualbox_*
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option. I know this is a hack, but I only need ipv4 working at this time. In the future I'm sure I will have to undo these changes, but for now they speed up my system.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo update-grub
It also looks like 2 of my favorite apps do DNS AAAA record lookups after ipv6 is disabled. The following removes the AAAA lookup which causes delays in firefox/seamonkey and ssh.
* '''Firefox'''
Edit the config by opening the page about:config and filter for ipv6. Toggle '''network.dns.disableIPv6''' to '''true'''.
*'''ssh'''
Edit /etc/ssh/ssh_config or ~/.ssh/config and add the following to the global host
host *
AddressFamily inet
== Display Grub2 menu ==
By default, if there is only one OS with grub2, no menu will be displayed.
Comment out the following line in /etc/default/grub
#GRUB_HIDDEN_TIMEOUT=0
This link has everything you want to know about the new grub2 options. http://ubuntuforums.org/showthread.php?t=1195275
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
6fdd1cdccc0ee6a849f8c03f8b8e3ca684b7275e
47
46
2009-11-28T15:03:29Z
Joe
2
/* Server Documentation */
wikitext
text/x-wiki
==Distribution Tips ==
[9.10 Karmic Koala]
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.10/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
This one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
=== VirtualBox Hash sum mitmatch ===
When trying to get virtualbox, I kept seeing errors from apt-get update. I removed the following files and was able to install/upgrade virtualbox.
rm /var/lib/apt/lists/download.virtualbox.org_virtualbox_*
rm /var/lib/apt/lists/partial/download.virtualbox.org_virtualbox_*
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option. I know this is a hack, but I only need ipv4 working at this time. In the future I'm sure I will have to undo these changes, but for now they speed up my system.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo update-grub
It also looks like 2 of my favorite apps do DNS AAAA record lookups after ipv6 is disabled. The following removes the AAAA lookup which causes delays in firefox/seamonkey and ssh.
* '''Firefox'''
Edit the config by opening the page about:config and filter for ipv6. Toggle '''network.dns.disableIPv6''' to '''true'''.
*'''ssh'''
Edit /etc/ssh/ssh_config or ~/.ssh/config and add the following to the global host
host *
AddressFamily inet
== Display Grub2 menu ==
By default, if there is only one OS with grub2, no menu will be displayed.
Comment out the following line in /etc/default/grub
#GRUB_HIDDEN_TIMEOUT=0
This link has everything you want to know about the new grub2 options. http://ubuntuforums.org/showthread.php?t=1195275
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
b30d01af05cb867b98e4eda913387164384a7c93
48
47
2009-11-28T15:04:21Z
Joe
2
/* Distribution Tips */
wikitext
text/x-wiki
==Distribution Tips ==
[[9.10 Karmic Koala]]
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.10/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
This one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
=== VirtualBox Hash sum mitmatch ===
When trying to get virtualbox, I kept seeing errors from apt-get update. I removed the following files and was able to install/upgrade virtualbox.
rm /var/lib/apt/lists/download.virtualbox.org_virtualbox_*
rm /var/lib/apt/lists/partial/download.virtualbox.org_virtualbox_*
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option. I know this is a hack, but I only need ipv4 working at this time. In the future I'm sure I will have to undo these changes, but for now they speed up my system.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo update-grub
It also looks like 2 of my favorite apps do DNS AAAA record lookups after ipv6 is disabled. The following removes the AAAA lookup which causes delays in firefox/seamonkey and ssh.
* '''Firefox'''
Edit the config by opening the page about:config and filter for ipv6. Toggle '''network.dns.disableIPv6''' to '''true'''.
*'''ssh'''
Edit /etc/ssh/ssh_config or ~/.ssh/config and add the following to the global host
host *
AddressFamily inet
== Display Grub2 menu ==
By default, if there is only one OS with grub2, no menu will be displayed.
Comment out the following line in /etc/default/grub
#GRUB_HIDDEN_TIMEOUT=0
This link has everything you want to know about the new grub2 options. http://ubuntuforums.org/showthread.php?t=1195275
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
4dd015e16fca345917e4505c30ced279fbee2009
MySQL
0
4
5
2009-08-13T15:00:23Z
Joe
2
Created page with 'Hacks for mysql Set the fulltext search length. edit /etc/mysql/conf.d/min_word_size.cnf [mysqld] ft_min_word_len=2'
wikitext
text/x-wiki
Hacks for mysql
Set the fulltext search length.
edit /etc/mysql/conf.d/min_word_size.cnf
[mysqld]
ft_min_word_len=2
3e96b86fc11f8adcd854ceaff30605f8935a8956
50
5
2009-11-28T15:21:03Z
Joe
2
wikitext
text/x-wiki
Hacks for mysql
Set the fulltext search length.
edit /etc/mysql/conf.d/min_word_size.cnf
[mysqld]
ft_min_word_len=2
== Tuning ==
There are a couple of good tuning tools for mysql. These tools are not 100%, but they can help you configure your instance of mysql to work better.
# [http://rackerhacker.com/mysqltuner/ mysqltuner.pl]
# [http://www.day32.com/MySQL/ tuning-primer.sh]
# [http://www.phpmyadmin.net/home_page/index.php phpmyadmin] - The Status Tab contains a lot of information on your server and it will put variables in Red that may need to be optimized.
27810461b9077ec37ca02fe778c1762513503f5c
Fedora 11
0
5
12
2009-08-16T13:57:15Z
Joe
2
Created page with '== GDM Fix == I wish that Fedora fix the gdm-setup package to work. But until that time, I found you can disable the log login name list with the following: GCONF_CONFIG_SOURC…'
wikitext
text/x-wiki
== GDM Fix ==
I wish that Fedora fix the gdm-setup package to work. But until that time, I found you can disable the log login name list with the following:
GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --set /apps/gdm/simple-greeter/disable_user_list --type bool TRUE
== Dansguardian ==
I had a number of issues getting Dansguardian working, even after a clean install of the package. You need to do the following to get it up and running.
cd /etc/dansguardian
ln -s /usr/share/dansguardian/lists
7a5c3b704ecbcb2585f1f0c7851b3303e404bb64
19
12
2009-08-27T01:06:30Z
Joe
2
wikitext
text/x-wiki
== GDM Fix ==
I wish that Fedora would fix the gdm-setup package to work. But until that time, I found you can disable the long login name list with the following:
GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --set /apps/gdm/simple-greeter/disable_user_list --type bool TRUE
== Dansguardian ==
I had a number of issues getting Dansguardian working, even after a clean install of the package. You need to do the following to get it up and running.
cd /etc/dansguardian
ln -s /usr/share/dansguardian/lists
318d57cb55fbf9fa9f8e8c69f674014bfc8b0323
Google fetchmail
0
6
15
2009-08-25T13:31:19Z
Joe
2
Created page with 'Google changes it cert for pop every soft often and you will get entries like this in your mail log for fetchmail. fetchmail[3324]: pop.gmail.com fingerprints do not match! in …'
wikitext
text/x-wiki
Google changes it cert for pop every soft often and you will get entries like this in your mail log for fetchmail.
fetchmail[3324]: pop.gmail.com fingerprints do not match!
in your .fetchmailrc file you will have a line like
options fetchall flush ssl sslfingerprint '92:73:17:4C:34:4B:68:F7:B2:17:71:42:0D:7F:9F:33'
To find the new fingerprint, use the following command
openssl s_client -connect pop.gmail.com:995 -showcerts < /dev/null | openssl x509 -fingerprint -md5 -text | grep Fingerprint | awk -F= '{print $2}'
10a5a5d8f8bd0105b1326684b44d1cc4d8cda169
Virtualization
0
7
16
2009-08-27T00:49:48Z
Joe
2
Created page with 'How to tell if you processor supports Virtualization. cat /proc/cpuinfo * vmx – (intel) * svm – (amd) If your cpuinfo file has a flag "svm" then you have AMD-v hardware …'
wikitext
text/x-wiki
How to tell if you processor supports Virtualization.
cat /proc/cpuinfo
* vmx – (intel)
* svm – (amd)
If your cpuinfo file has a flag "svm" then you have AMD-v hardware virtualization support (aka pacifica) on
your cpu.
egrep ‘(vmx|svm)’ /proc/cpuinfo
3a03e0dbeb3f2c2b1816e0cba873462168e7fbab
17
16
2009-08-27T00:50:32Z
Joe
2
wikitext
text/x-wiki
How to tell if you processor supports Virtualization.
cat /proc/cpuinfo
* vmx – (intel)
* svm – (amd)
If your cpuinfo file has a flag "svm" then you have AMD-v hardware virtualization support (aka pacifica) on
your cpu.
egrep 'vmx|svm' /proc/cpuinfo
a48505caff4a73386c2d7e0e915ff40b8dc4e6a3
18
17
2009-08-27T01:05:37Z
Joe
2
wikitext
text/x-wiki
How to tell if your processor supports Virtualization.
egrep 'vmx|svm' /proc/cpuinfo
or
cat /proc/cpuinfo
And look for the following CPU flags
* vmx – (intel)
* svm – (amd)
If your cpuinfo file has a flag "svm" then you have AMD-v hardware virtualization support (aka pacifica) on
your cpu.
9813e7ee7b3bfc8d0cb2ace66b560404ec0de7e4
40
18
2009-10-25T14:04:50Z
Joe
2
wikitext
text/x-wiki
How to tell if your processor supports Virtualization.
egrep 'vmx|svm' /proc/cpuinfo
or
cat /proc/cpuinfo
And look for the following CPU flags
* vmx – (intel)
* svm – (amd)
If your cpuinfo file has a flag "svm" then you have AMD-v hardware virtualization support (aka pacifica) on
your cpu.
== Fix VMware 6.5.3 on Ubuntu Karmic 9.10 ==
Install freezes when trying to do an install. I found the following tips to work properly.
You need to be root, so do something like sudo su - and change to the directory where the vmware bundle is.
chmod 755 VMware-Workstation-6.5.3-185404.*.bundle
export VMWARE_SKIP_MODULES=true
./VMware-Workstation-6.5.3-185404.*.bundle
After the install completes, do the following.
vmware-modconfig --console --install-all
Fix vmware command if there is an issue with the mouse losing focus because the display is too big.
mv /usr/bin/vmware /usr/bin/vmware.real
and create the file /usr/bin/vmware with the following content.
#!/bin/bash
export VMWARE_USE_SHIPPED_GTK=force
/usr/bin/vmware.real $@
Make sure you chmod the file
chmod 755 /usr/bin/vmware
8e8da837aae05ecc4cb3690ab258c49d1834f449
Good Monitoring Tools
0
8
22
2009-09-18T22:27:59Z
Joe
2
Created page with 'Everyone knows about the top command. Here are some of my favorite and command options. Monitor hard drive activity and how may megabytes are read/written every 5 seconds. iost…'
wikitext
text/x-wiki
Everyone knows about the top command. Here are some of my favorite and command options.
Monitor hard drive activity and how may megabytes are read/written every 5 seconds.
iostat -m 5
A better top command
htop
Command to show only processes writing to the hard drive.
iotop -o
Shows network activity on eth0
iftop -i eth0
Another useful top command
atop
cc0a9ffa6d9cf875a7dfcbe4e74c983d2e460160
24
22
2009-09-18T22:34:45Z
Joe
2
wikitext
text/x-wiki
Everyone knows about the top command. Here are some of my favorite monitor tools and command options.
Monitor hard drive activity and how may megabytes are read/written every 5 seconds.
iostat -m 5
A better top command
htop
Command to show only processes writing to the hard drive.
iotop -o
Shows network activity on eth0
iftop -i eth0
Another useful top command
atop
247232ec234eb44e9a4452577947d2175a2b0e73
RHEL
0
9
26
2009-10-10T21:03:58Z
Joe
2
Created page with 'Simple tricks for RHEL that are common to me. == Disable ipv6 == RHEL 5.4 has an easy way to disable ipv6. The other methods don't work when the iscsi driver is loaded. To disab…'
wikitext
text/x-wiki
Simple tricks for RHEL that are common to me.
== Disable ipv6 ==
RHEL 5.4 has an easy way to disable ipv6. The other methods don't work when the iscsi driver is loaded. To disable:
echo “options ipv6 disable=1″ > /etc/modprobe.d/disable-ipv6
http://planet.admon.org/2009/09/how-to-disable-the-ipv6-protocol/
== Links ==
http://planet.admon.org/2009/09/how-to-disable-the-ipv6-protocol/ - How to disable the IPv6 protocol?
a0d99fcfbe72611b1a427cdb27b0fe9fd3a05bb6
27
26
2009-10-10T21:05:24Z
Joe
2
/* Disable ipv6 */
wikitext
text/x-wiki
Simple tricks for RHEL that are common to me.
== Disable ipv6 ==
RHEL 5.4 has an easy way to disable ipv6. The other methods don't work when the iscsi driver is loaded. To disable:
echo "options ipv6 disable=1" > /etc/modprobe.d/disable-ipv6
http://planet.admon.org/2009/09/how-to-disable-the-ipv6-protocol/
== Links ==
http://planet.admon.org/2009/09/how-to-disable-the-ipv6-protocol/ - How to disable the IPv6 protocol?
6f38c252dc949f80f4560ff54747f6d0849ac64f
Seamonkey
0
11
38
2009-10-18T14:19:55Z
Joe
2
Created page with '== Seamonkey Download Dialog == It has happened a couple times where I lost the ability to see the download dialog. I recreated my profile and that fixed the problem. The easier …'
wikitext
text/x-wiki
== Seamonkey Download Dialog ==
It has happened a couple times where I lost the ability to see the download dialog. I recreated my profile and that fixed the problem. The easier was seems to be remove the downloads.rdf file in the profile directory that is causing the problem. For example,
cd ~/.mozilla/Default/a737728.slt
rm downloads.rdf
I've only see this a couple times.
5ecb54d3b78468adb05ca74bf64e8e86c0265b7c
52
38
2009-12-15T07:17:05Z
Joe
2
/* Seamonkey Download Dialog */
wikitext
text/x-wiki
== Seamonkey Download Dialog ==
It has happened a couple times where I lost the ability to see the download dialog. I recreated my profile and that fixed the problem. The easier was seems to be remove the downloads.rdf file in the profile directory that is causing the problem. For example,
cd ~/.mozilla/Default/a737728.slt
rm downloads.rdf
I've only see this a couple times.
== Googlebar for Seamonkey 2.0 ==
I really like google bar when using Seamonkey and I have been using the bar from mozdev for years. I could not find a working copy of it for seamonkey 2.0, so I changed the install script and it seems to work perfectly. Use at your own risk, as I'm putting it here so I can load it on my other systems when I need to add it. The change was minor and I put it here when I have a chance.
[http://www.joehacker.com/downloads/gb-0.9.15.13.xpi Download Google bar xpi]
Once you have the file downloaded, Open it with the browser.
377f7bc0e48f5fcbce2551637d64d26bbb06359f
53
52
2009-12-15T07:19:40Z
Joe
2
/* Googlebar for Seamonkey 2.0 */
wikitext
text/x-wiki
== Seamonkey Download Dialog ==
It has happened a couple times where I lost the ability to see the download dialog. I recreated my profile and that fixed the problem. The easier was seems to be remove the downloads.rdf file in the profile directory that is causing the problem. For example,
cd ~/.mozilla/Default/a737728.slt
rm downloads.rdf
I've only see this a couple times.
== Googlebar for Seamonkey 2.0 ==
I really like google bar when using Seamonkey and I have been using the bar from mozdev for years. I could not find a working copy of it for seamonkey 2.0, so I changed the install script and it seems to work perfectly. Use at your own risk, as I'm putting it here so I can load it on my other systems when I need to add it. The change was minor and I put it here when I have a chance.
[http://www.joehacker.com/downloads/gb-0.9.15.13.xpi Download Google bar xpi]
Once you have the file downloaded, Open it with the browser.
This code came directly from http://googlebar.mozdev.org/screenshots.html
The only think I had to do was change the product code so that it would work with seamonkey instead of Mozilla Suite.
cc3c48fbbde9a822b12a47db9279bf0ca7de4939
54
53
2009-12-19T12:58:47Z
Joe
2
/* Googlebar for Seamonkey 2.0 */
wikitext
text/x-wiki
== Seamonkey Download Dialog ==
It has happened a couple times where I lost the ability to see the download dialog. I recreated my profile and that fixed the problem. The easier was seems to be remove the downloads.rdf file in the profile directory that is causing the problem. For example,
cd ~/.mozilla/Default/a737728.slt
rm downloads.rdf
I've only see this a couple times.
== Googlebar for Seamonkey 2.0 ==
I really like google bar when using Seamonkey and I have been using the bar from mozdev for years. I could not find a working copy of it for seamonkey 2.0, so I changed the install script and it seems to work perfectly. Use at your own risk, as I'm putting it here so I can load it on my other systems when I need to add it. The change was minor and I put it here when I have a chance.
[http://www.joehacker.com/downloads/gb-0.9.15.13.xpi Download Google bar xpi]
Once you have the file downloaded, Open it with the browser.
This code came directly from http://googlebar.mozdev.org/screenshots.html
The only think I had to do was change the product code so that it would work with seamonkey instead of Mozilla Suite.
If you want to implement the change yourself:
# download the original file from mozdev http://downloads.mozdev.org/googlebar/XPI-rimental-ff.xpi
# unzip the xpi file and change the following lines in install.rdf.
Old:
< em:id="{3db10fab-e461-4c80-8b97-957ad5f8ea47}"
< em:minVersion="8.0"
< em:maxVersion="8.0.4" />
New:
> em:id="{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}"
> em:minVersion="1.0"
> em:maxVersion="3.0" />
<ol start=3>
<li>Use zip and put the files into a file with xpi as the extension.</li>
<li> Open the xpi file with Seamonkey.</li>
</ol>
e1177fa33a71a903b06318da7f129a7681cbda13
9.10 Karmic Koala
0
12
49
2009-11-28T15:12:28Z
Joe
2
Created page with 'I'm going to create a page for each release and this is my starter page for 9.10 Karmic Koala. I'm starting with duplicate information for the parent page but will fill these pag…'
wikitext
text/x-wiki
I'm going to create a page for each release and this is my starter page for 9.10 Karmic Koala. I'm starting with duplicate information for the parent page but will fill these pages out as I come across thinks I think should be here.
== [[Upstart]] and SysV init differences ==
To me, this is one the the biggest change in Karmic as the old sysv tools have all been removed. I was confused on how upstart worked and how to control the order of what apps loaded when. See my [[Upstart]] page for what I found useful.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option. I know this is a hack, but I only need ipv4 working at this time. In the future I'm sure I will have to undo these changes, but for now they speed up my system.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo update-grub
It also looks like 2 of my favorite apps do DNS AAAA record lookups after ipv6 is disabled. The following removes the AAAA lookup which causes delays in firefox/seamonkey and ssh.
* '''Firefox'''
Edit the config by opening the page about:config and filter for ipv6. Toggle '''network.dns.disableIPv6''' to '''true'''.
*'''ssh'''
Edit /etc/ssh/ssh_config or ~/.ssh/config and add the following to the global host
host *
AddressFamily inet
== Display Grub2 menu ==
By default, if there is only one OS with grub2, no menu will be displayed.
Comment out the following line in /etc/default/grub
#GRUB_HIDDEN_TIMEOUT=0
This link has everything you want to know about the new grub2 options. http://ubuntuforums.org/showthread.php?t=1195275
33cf9ed5283ecc3732312314cd11c33944339c33
Upstart
0
13
51
2009-11-28T15:38:46Z
Joe
2
Created page with '[http://upstart.ubuntu.com/ Ubuntu Upstart] changed the basic way Linix boots the system. It's event based so applications can be loaded when an event happens vs loading via some…'
wikitext
text/x-wiki
[http://upstart.ubuntu.com/ Ubuntu Upstart] changed the basic way Linix boots the system. It's event based so applications can be loaded when an event happens vs loading via some numeric ordering. Upstart has been used in Ubuntu for a few releases now, but 9.10 Karmic Kola made significant changes and most application startup happens with upstart now.
== Basic knowledge ==
The place to start with upstart is in its configuration directory
cd /etc/init
Here you will find the scripts that start the system.
== runlevel ==
The default runlevel used to be in /etc/inittab, now the config file /etc/init/rc-sysinit.conf contains the default runlevel and /etc/init/rc.conf is called to start the apps in /etc/rcX.d/ where 'X' is the numeric runlevel selected.
f35d4a9da13a7f414da3228ff9c0c6827d3a9010
Ubuntu Karmic
0
14
55
2009-12-20T00:50:12Z
Joe
2
Created page with '== Disable Shutdown confirmation message == Remove the 60 second to shutdown confirmation message in Karmic. Open a [Terminal] or [Alt-F2] and type gconf-editor and press [Ente…'
wikitext
text/x-wiki
== Disable Shutdown confirmation message ==
Remove the 60 second to shutdown confirmation message in Karmic.
Open a [Terminal] or [Alt-F2] and type gconf-editor and press [Enter], now using the left-hand menu select [apps], then [indicator-sessions] and tick the box next to [ suppress_logout_restart_shutdown ]
59d20ee86fa8bc69fc3539bb8cbc031171db266c
Ubuntu Tips
0
3
56
48
2009-12-22T03:03:18Z
Joe
2
/* Links */
wikitext
text/x-wiki
==Distribution Tips ==
[[9.10 Karmic Koala]]
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.10/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
This one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
=== VirtualBox Hash sum mitmatch ===
When trying to get virtualbox, I kept seeing errors from apt-get update. I removed the following files and was able to install/upgrade virtualbox.
rm /var/lib/apt/lists/download.virtualbox.org_virtualbox_*
rm /var/lib/apt/lists/partial/download.virtualbox.org_virtualbox_*
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option. I know this is a hack, but I only need ipv4 working at this time. In the future I'm sure I will have to undo these changes, but for now they speed up my system.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo update-grub
It also looks like 2 of my favorite apps do DNS AAAA record lookups after ipv6 is disabled. The following removes the AAAA lookup which causes delays in firefox/seamonkey and ssh.
* '''Firefox'''
Edit the config by opening the page about:config and filter for ipv6. Toggle '''network.dns.disableIPv6''' to '''true'''.
*'''ssh'''
Edit /etc/ssh/ssh_config or ~/.ssh/config and add the following to the global host
host *
AddressFamily inet
== Display Grub2 menu ==
By default, if there is only one OS with grub2, no menu will be displayed.
Comment out the following line in /etc/default/grub
#GRUB_HIDDEN_TIMEOUT=0
This link has everything you want to know about the new grub2 options. http://ubuntuforums.org/showthread.php?t=1195275
== Check dpkg MD5 checksums ==
I'm sure there is an easier way, but I kept looking up this information. If you want to ensure that the files installed on your system match the checksums when the package was install, you can create the following script. I call mine, dpkg_md5check
#!/bin/bash
cd /
for i in /var/lib/dpkg/info/*.md5sums;
do
sudo md5sum -c $i |grep -v 'OK$'
done
You may get some false positives, but at least it gives you an indication of the majority of the files. I think RedHat has an easier and better method and I'll update this section when I find a better method.
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
df9cb5812bc7afc3b526ba25adc43f70a3b5e298
57
56
2009-12-22T03:03:43Z
Joe
2
/* Check dpkg MD5 checksums */
wikitext
text/x-wiki
==Distribution Tips ==
[[9.10 Karmic Koala]]
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.10/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
This one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
=== VirtualBox Hash sum mitmatch ===
When trying to get virtualbox, I kept seeing errors from apt-get update. I removed the following files and was able to install/upgrade virtualbox.
rm /var/lib/apt/lists/download.virtualbox.org_virtualbox_*
rm /var/lib/apt/lists/partial/download.virtualbox.org_virtualbox_*
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option. I know this is a hack, but I only need ipv4 working at this time. In the future I'm sure I will have to undo these changes, but for now they speed up my system.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo update-grub
It also looks like 2 of my favorite apps do DNS AAAA record lookups after ipv6 is disabled. The following removes the AAAA lookup which causes delays in firefox/seamonkey and ssh.
* '''Firefox'''
Edit the config by opening the page about:config and filter for ipv6. Toggle '''network.dns.disableIPv6''' to '''true'''.
*'''ssh'''
Edit /etc/ssh/ssh_config or ~/.ssh/config and add the following to the global host
host *
AddressFamily inet
== Display Grub2 menu ==
By default, if there is only one OS with grub2, no menu will be displayed.
Comment out the following line in /etc/default/grub
#GRUB_HIDDEN_TIMEOUT=0
This link has everything you want to know about the new grub2 options. http://ubuntuforums.org/showthread.php?t=1195275
== Check dpkg MD5 checksums ==
I'm sure there is an easier way, but I kept looking up this information. If you want to ensure that the files installed on your system match the checksums when the package was install, you can create the following script. I call mine, dpkg_md5check
#!/bin/bash
cd /
for i in /var/lib/dpkg/info/*.md5sums;
do
sudo md5sum -c $i |grep -v 'OK$'
done
You may get some false positives, but at least it gives you an indication of the majority of the files. I think RedHat has an easier and better method and I'll update this section when I find a better method for Ubuntu.
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
c60e6bb4add55c9ef71c24a564baf43212c04ee9
59
57
2010-03-10T18:51:48Z
Joe
2
/* Distribution Tips */
wikitext
text/x-wiki
==Distribution Tips ==
[[9.10 Karmic Koala]]
[[10.04 Lucid Lynx]]
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.10/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
This one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
=== VirtualBox Hash sum mitmatch ===
When trying to get virtualbox, I kept seeing errors from apt-get update. I removed the following files and was able to install/upgrade virtualbox.
rm /var/lib/apt/lists/download.virtualbox.org_virtualbox_*
rm /var/lib/apt/lists/partial/download.virtualbox.org_virtualbox_*
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option. I know this is a hack, but I only need ipv4 working at this time. In the future I'm sure I will have to undo these changes, but for now they speed up my system.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo update-grub
It also looks like 2 of my favorite apps do DNS AAAA record lookups after ipv6 is disabled. The following removes the AAAA lookup which causes delays in firefox/seamonkey and ssh.
* '''Firefox'''
Edit the config by opening the page about:config and filter for ipv6. Toggle '''network.dns.disableIPv6''' to '''true'''.
*'''ssh'''
Edit /etc/ssh/ssh_config or ~/.ssh/config and add the following to the global host
host *
AddressFamily inet
== Display Grub2 menu ==
By default, if there is only one OS with grub2, no menu will be displayed.
Comment out the following line in /etc/default/grub
#GRUB_HIDDEN_TIMEOUT=0
This link has everything you want to know about the new grub2 options. http://ubuntuforums.org/showthread.php?t=1195275
== Check dpkg MD5 checksums ==
I'm sure there is an easier way, but I kept looking up this information. If you want to ensure that the files installed on your system match the checksums when the package was install, you can create the following script. I call mine, dpkg_md5check
#!/bin/bash
cd /
for i in /var/lib/dpkg/info/*.md5sums;
do
sudo md5sum -c $i |grep -v 'OK$'
done
You may get some false positives, but at least it gives you an indication of the majority of the files. I think RedHat has an easier and better method and I'll update this section when I find a better method for Ubuntu.
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
799a2e85b89b6c0d54ab05853cd3c540c34f46bc
60
59
2010-03-10T18:52:08Z
Joe
2
/* Distribution Tips */
wikitext
text/x-wiki
==Distribution Tips ==
*[[9.10 Karmic Koala]]
*[[10.04 Lucid Lynx]]
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.10/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
This one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
=== VirtualBox Hash sum mitmatch ===
When trying to get virtualbox, I kept seeing errors from apt-get update. I removed the following files and was able to install/upgrade virtualbox.
rm /var/lib/apt/lists/download.virtualbox.org_virtualbox_*
rm /var/lib/apt/lists/partial/download.virtualbox.org_virtualbox_*
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option. I know this is a hack, but I only need ipv4 working at this time. In the future I'm sure I will have to undo these changes, but for now they speed up my system.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo update-grub
It also looks like 2 of my favorite apps do DNS AAAA record lookups after ipv6 is disabled. The following removes the AAAA lookup which causes delays in firefox/seamonkey and ssh.
* '''Firefox'''
Edit the config by opening the page about:config and filter for ipv6. Toggle '''network.dns.disableIPv6''' to '''true'''.
*'''ssh'''
Edit /etc/ssh/ssh_config or ~/.ssh/config and add the following to the global host
host *
AddressFamily inet
== Display Grub2 menu ==
By default, if there is only one OS with grub2, no menu will be displayed.
Comment out the following line in /etc/default/grub
#GRUB_HIDDEN_TIMEOUT=0
This link has everything you want to know about the new grub2 options. http://ubuntuforums.org/showthread.php?t=1195275
== Check dpkg MD5 checksums ==
I'm sure there is an easier way, but I kept looking up this information. If you want to ensure that the files installed on your system match the checksums when the package was install, you can create the following script. I call mine, dpkg_md5check
#!/bin/bash
cd /
for i in /var/lib/dpkg/info/*.md5sums;
do
sudo md5sum -c $i |grep -v 'OK$'
done
You may get some false positives, but at least it gives you an indication of the majority of the files. I think RedHat has an easier and better method and I'll update this section when I find a better method for Ubuntu.
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
db8272b26504b8588397116dc62de17307fd6b6a
63
60
2010-03-30T21:36:56Z
Joe
2
wikitext
text/x-wiki
==Distribution Tips ==
*[[9.10 Karmic Koala]]
*[[10.04 Lucid Lynx]]
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.10/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Old Kernel cleanup ==
I have not found an easy way to clean up old kernels on Ubuntu so I wrote a small function that runs in bash to removed them. It should leave most 2 recent kernels on the system. Use at your own risk, Below is the snipet of code I put in my ~/.bashrc file to allow me to clean up old kernels. After you source the .bashrc file, you can then type kernel_cleanup and it will prompt you to remove the kernel and header files.
function kernel_cleanup()
{
cur=$(uname -r)
for ver in $(dpkg -l | grep linux-image-2| grep -v $cur | awk '{print $3}'| sed 's/\.[0-9]*$//' | sort -rn| tail -n +2 )
do
echo $ver
prm=$(dpkg -l | grep $ver | awk '{print $2}')
echo $prm
echo -n "Remove Packages (Y/n): "
read x
if [ "$x" = "n" ] ; then
echo "Not removing"
continue
fi
sudo dpkg -P $prm
sudo rm -rf /lib/modules/$ver-generic
done
}
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
This one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
=== VirtualBox Hash sum mitmatch ===
When trying to get virtualbox, I kept seeing errors from apt-get update. I removed the following files and was able to install/upgrade virtualbox.
rm /var/lib/apt/lists/download.virtualbox.org_virtualbox_*
rm /var/lib/apt/lists/partial/download.virtualbox.org_virtualbox_*
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option. I know this is a hack, but I only need ipv4 working at this time. In the future I'm sure I will have to undo these changes, but for now they speed up my system.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo update-grub
It also looks like 2 of my favorite apps do DNS AAAA record lookups after ipv6 is disabled. The following removes the AAAA lookup which causes delays in firefox/seamonkey and ssh.
* '''Firefox'''
Edit the config by opening the page about:config and filter for ipv6. Toggle '''network.dns.disableIPv6''' to '''true'''.
*'''ssh'''
Edit /etc/ssh/ssh_config or ~/.ssh/config and add the following to the global host
host *
AddressFamily inet
== Display Grub2 menu ==
By default, if there is only one OS with grub2, no menu will be displayed.
Comment out the following line in /etc/default/grub
#GRUB_HIDDEN_TIMEOUT=0
This link has everything you want to know about the new grub2 options. http://ubuntuforums.org/showthread.php?t=1195275
== Check dpkg MD5 checksums ==
I'm sure there is an easier way, but I kept looking up this information. If you want to ensure that the files installed on your system match the checksums when the package was install, you can create the following script. I call mine, dpkg_md5check
#!/bin/bash
cd /
for i in /var/lib/dpkg/info/*.md5sums;
do
sudo md5sum -c $i |grep -v 'OK$'
done
You may get some false positives, but at least it gives you an indication of the majority of the files. I think RedHat has an easier and better method and I'll update this section when I find a better method for Ubuntu.
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
474a8ae9298efe1b58d36c7bc1e41273e9edb442
64
63
2010-03-30T21:38:12Z
Joe
2
/* Old Kernel cleanup */
wikitext
text/x-wiki
==Distribution Tips ==
*[[9.10 Karmic Koala]]
*[[10.04 Lucid Lynx]]
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.10/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Old Kernel cleanup ==
I have not found an easy way to clean up old kernels on Ubuntu so I wrote a small function that runs in bash to removed them. It should leave most 2 recent kernels on the system. Use at your own risk. Below is the snippet of code I put in my ~/.bashrc file to allow me to clean up old kernels. After you source the .bashrc file, you can then type kernel_cleanup and it will prompt you to remove the kernel and header files.
function kernel_cleanup()
{
cur=$(uname -r)
for ver in $(dpkg -l | grep linux-image-2| grep -v $cur | awk '{print $3}'| sed 's/\.[0-9]*$//' | sort -rn| tail -n +2 )
do
echo $ver
prm=$(dpkg -l | grep $ver | awk '{print $2}')
echo $prm
echo -n "Remove Packages (Y/n): "
read x
if [ "$x" = "n" ] ; then
echo "Not removing"
continue
fi
sudo dpkg -P $prm
sudo rm -rf /lib/modules/$ver-generic
done
}
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
This one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
=== VirtualBox Hash sum mitmatch ===
When trying to get virtualbox, I kept seeing errors from apt-get update. I removed the following files and was able to install/upgrade virtualbox.
rm /var/lib/apt/lists/download.virtualbox.org_virtualbox_*
rm /var/lib/apt/lists/partial/download.virtualbox.org_virtualbox_*
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option. I know this is a hack, but I only need ipv4 working at this time. In the future I'm sure I will have to undo these changes, but for now they speed up my system.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo update-grub
It also looks like 2 of my favorite apps do DNS AAAA record lookups after ipv6 is disabled. The following removes the AAAA lookup which causes delays in firefox/seamonkey and ssh.
* '''Firefox'''
Edit the config by opening the page about:config and filter for ipv6. Toggle '''network.dns.disableIPv6''' to '''true'''.
*'''ssh'''
Edit /etc/ssh/ssh_config or ~/.ssh/config and add the following to the global host
host *
AddressFamily inet
== Display Grub2 menu ==
By default, if there is only one OS with grub2, no menu will be displayed.
Comment out the following line in /etc/default/grub
#GRUB_HIDDEN_TIMEOUT=0
This link has everything you want to know about the new grub2 options. http://ubuntuforums.org/showthread.php?t=1195275
== Check dpkg MD5 checksums ==
I'm sure there is an easier way, but I kept looking up this information. If you want to ensure that the files installed on your system match the checksums when the package was install, you can create the following script. I call mine, dpkg_md5check
#!/bin/bash
cd /
for i in /var/lib/dpkg/info/*.md5sums;
do
sudo md5sum -c $i |grep -v 'OK$'
done
You may get some false positives, but at least it gives you an indication of the majority of the files. I think RedHat has an easier and better method and I'll update this section when I find a better method for Ubuntu.
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
0029db2535fdd61c71d796d2b020831f821a45db
65
64
2010-03-30T21:39:06Z
Joe
2
/* Old Kernel cleanup */
wikitext
text/x-wiki
==Distribution Tips ==
*[[9.10 Karmic Koala]]
*[[10.04 Lucid Lynx]]
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.10/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Old Kernel cleanup ==
I have not found an easy way to clean up old kernels on Ubuntu so I wrote a small function that runs in bash to removed them. It should leave most 2 recent kernels on the system. Use at your own risk. Below is the snippet of code I put in my ~/.bashrc file to allow me to clean up old kernels. After you source the .bashrc file, you can then type kernel_cleanup and it will prompt you to remove the kernel and header files.
function kernel_cleanup()
{
cur=$(uname -r)
for ver in $(dpkg -l | grep linux-image-2| grep -v $cur | awk '{print $3}'| sed 's/\.[0-9]*$//' | sort -rn| tail -n +2 )
do
echo $ver
prm=$(dpkg -l | grep $ver | awk '{print $2}')
echo $prm
echo -n "Remove Packages (Y/n): "
read x
if [ "$x" = "n" ] ; then
echo "Not removing"
continue
fi
sudo dpkg -P $prm
sudo rm -rf /lib/modules/$ver-generic
done
}
To run it:
. ~/.bashrc
kernel_cleanup
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
This one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
=== VirtualBox Hash sum mitmatch ===
When trying to get virtualbox, I kept seeing errors from apt-get update. I removed the following files and was able to install/upgrade virtualbox.
rm /var/lib/apt/lists/download.virtualbox.org_virtualbox_*
rm /var/lib/apt/lists/partial/download.virtualbox.org_virtualbox_*
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option. I know this is a hack, but I only need ipv4 working at this time. In the future I'm sure I will have to undo these changes, but for now they speed up my system.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo update-grub
It also looks like 2 of my favorite apps do DNS AAAA record lookups after ipv6 is disabled. The following removes the AAAA lookup which causes delays in firefox/seamonkey and ssh.
* '''Firefox'''
Edit the config by opening the page about:config and filter for ipv6. Toggle '''network.dns.disableIPv6''' to '''true'''.
*'''ssh'''
Edit /etc/ssh/ssh_config or ~/.ssh/config and add the following to the global host
host *
AddressFamily inet
== Display Grub2 menu ==
By default, if there is only one OS with grub2, no menu will be displayed.
Comment out the following line in /etc/default/grub
#GRUB_HIDDEN_TIMEOUT=0
This link has everything you want to know about the new grub2 options. http://ubuntuforums.org/showthread.php?t=1195275
== Check dpkg MD5 checksums ==
I'm sure there is an easier way, but I kept looking up this information. If you want to ensure that the files installed on your system match the checksums when the package was install, you can create the following script. I call mine, dpkg_md5check
#!/bin/bash
cd /
for i in /var/lib/dpkg/info/*.md5sums;
do
sudo md5sum -c $i |grep -v 'OK$'
done
You may get some false positives, but at least it gives you an indication of the majority of the files. I think RedHat has an easier and better method and I'll update this section when I find a better method for Ubuntu.
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
5e32851e3e47f4af37be8c75fd22e69e3469ed1d
66
65
2010-05-11T23:11:21Z
Joe
2
/* Links */
wikitext
text/x-wiki
==Distribution Tips ==
*[[9.10 Karmic Koala]]
*[[10.04 Lucid Lynx]]
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.10/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Old Kernel cleanup ==
I have not found an easy way to clean up old kernels on Ubuntu so I wrote a small function that runs in bash to removed them. It should leave most 2 recent kernels on the system. Use at your own risk. Below is the snippet of code I put in my ~/.bashrc file to allow me to clean up old kernels. After you source the .bashrc file, you can then type kernel_cleanup and it will prompt you to remove the kernel and header files.
function kernel_cleanup()
{
cur=$(uname -r)
for ver in $(dpkg -l | grep linux-image-2| grep -v $cur | awk '{print $3}'| sed 's/\.[0-9]*$//' | sort -rn| tail -n +2 )
do
echo $ver
prm=$(dpkg -l | grep $ver | awk '{print $2}')
echo $prm
echo -n "Remove Packages (Y/n): "
read x
if [ "$x" = "n" ] ; then
echo "Not removing"
continue
fi
sudo dpkg -P $prm
sudo rm -rf /lib/modules/$ver-generic
done
}
To run it:
. ~/.bashrc
kernel_cleanup
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
This one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
=== VirtualBox Hash sum mitmatch ===
When trying to get virtualbox, I kept seeing errors from apt-get update. I removed the following files and was able to install/upgrade virtualbox.
rm /var/lib/apt/lists/download.virtualbox.org_virtualbox_*
rm /var/lib/apt/lists/partial/download.virtualbox.org_virtualbox_*
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option. I know this is a hack, but I only need ipv4 working at this time. In the future I'm sure I will have to undo these changes, but for now they speed up my system.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo update-grub
It also looks like 2 of my favorite apps do DNS AAAA record lookups after ipv6 is disabled. The following removes the AAAA lookup which causes delays in firefox/seamonkey and ssh.
* '''Firefox'''
Edit the config by opening the page about:config and filter for ipv6. Toggle '''network.dns.disableIPv6''' to '''true'''.
*'''ssh'''
Edit /etc/ssh/ssh_config or ~/.ssh/config and add the following to the global host
host *
AddressFamily inet
== Display Grub2 menu ==
By default, if there is only one OS with grub2, no menu will be displayed.
Comment out the following line in /etc/default/grub
#GRUB_HIDDEN_TIMEOUT=0
This link has everything you want to know about the new grub2 options. http://ubuntuforums.org/showthread.php?t=1195275
== Check dpkg MD5 checksums ==
I'm sure there is an easier way, but I kept looking up this information. If you want to ensure that the files installed on your system match the checksums when the package was install, you can create the following script. I call mine, dpkg_md5check
#!/bin/bash
cd /
for i in /var/lib/dpkg/info/*.md5sums;
do
sudo md5sum -c $i |grep -v 'OK$'
done
You may get some false positives, but at least it gives you an indication of the majority of the files. I think RedHat has an easier and better method and I'll update this section when I find a better method for Ubuntu.
== Disable automounting of USB drives ==
Sometimes I need to be able to connect a USB drive and not have it automatically mount the device. The following command will disable this function
gconftool-2 --type bool --set /apps/nautilus/preferences/media_automount false
And this command will enable it again.
gconftool-2 --type bool --set /apps/nautilus/preferences/media_automount true
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
0dea8e16a50ed493cfba1d6012361cb111d3a097
81
66
2011-11-28T07:03:36Z
Joe
2
/* VirtualBox Hash sum mitmatch */
wikitext
text/x-wiki
==Distribution Tips ==
*[[9.10 Karmic Koala]]
*[[10.04 Lucid Lynx]]
== Server Documentation ==
Ubuntu has put up really nice documentation for configuring servers. https://help.ubuntu.com/9.10/serverguide/C/index.html
== General Changes ==
dash is the default shell linked to /bin/sh. This can cause a number of problems with some scripts. To change /bin/sh back to bash use the following command.
dpkg-reconfigure dash
== Admin Commands ==
allow a user to sudo
sudo adduser <username>
sudo adduser <username> admin
== Old Kernel cleanup ==
I have not found an easy way to clean up old kernels on Ubuntu so I wrote a small function that runs in bash to removed them. It should leave most 2 recent kernels on the system. Use at your own risk. Below is the snippet of code I put in my ~/.bashrc file to allow me to clean up old kernels. After you source the .bashrc file, you can then type kernel_cleanup and it will prompt you to remove the kernel and header files.
function kernel_cleanup()
{
cur=$(uname -r)
for ver in $(dpkg -l | grep linux-image-2| grep -v $cur | awk '{print $3}'| sed 's/\.[0-9]*$//' | sort -rn| tail -n +2 )
do
echo $ver
prm=$(dpkg -l | grep $ver | awk '{print $2}')
echo $prm
echo -n "Remove Packages (Y/n): "
read x
if [ "$x" = "n" ] ; then
echo "Not removing"
continue
fi
sudo dpkg -P $prm
sudo rm -rf /lib/modules/$ver-generic
done
}
To run it:
. ~/.bashrc
kernel_cleanup
== Apache ==
remake ssl snakeoil cert
sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Disable default site
a2dissite default
Enable ldap
a2enmod authnz_ldap
== LDAP TLS ==
The following line needs to be defined in /etc/ldap/ldap.conf
TLS_CACERT /etc/ssl/certs/[CA_CERT.pem]
Where CA_CERT.pem is your Root CA.
Helpful page to configure ldap server https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html
== Wireless Keys ==
It remove a saved passphase for a wireless connection that NetworkManager uses, the following command will let you update the keys. The are on the Password tab.
seahorse
== Building Help ==
Debian source packages need a debian directory in the extracted source tree to build a package. There are plenty of sites that explain what those files are and how to create them. These are my shortcut notes to modify a package. I'll expand this section when I know more.
An an example, I wanted to get the newest version of luma packaged. I downloaded luma-2.4 and saved the tar. I then ran the following and got the current source for luma.
apt-get source luma
It created the luma-2.3 directory structure. I extracted the new tar and copied the debian directory to the new directory.
tar -xvjf luma-2.4.tar.bz2
cp -a luma-2.3/debian luma-2.4/.
Now I needed to update the changelog and change the version information.
cd luma-2.4/debian
dch -i
cd ..
After adding the comments for the new version, I built the package.
dpkg-buildpackage -rfakeroot
== General Troubleshooting ==
=== Apt-cacher-ng ===
This one took a while to figure out while trying to do an upgrade. I've seen numerous problems with trying to use apt-cacher-ng with the upgrade process, but this
one was caused by a corrupted file in the cache.
When trying an upgrade, I got the following error
Checking for a new ubuntu release
Failed Upgrade tool signature
Done Upgrade tool
Done downloading
extracting 'jaunty.tar.gz'
authenticate 'jaunty.tar.gz' against 'jaunty.tar.gz.gpg'
exception from gpg: GnuPG exited non-zero, with code 131072
Debug information:
...
It turns out that /var/lib/update-manager/meta-release was corrupt and everytime I edited the file the corruption came back. I removed the file from apt-cache-ng cache directory, retried the upgrade and everything was fixed.
rm /var/cache/apt-cacher-ng/changelogs.ubuntu.com/meta-release
=== VirtualBox Hash sum mismatch ===
When trying to get virtualbox, I kept seeing errors from apt-get update. I removed the following files and was able to install/upgrade virtualbox.
rm /var/lib/apt/lists/download.virtualbox.org_virtualbox_*
rm /var/lib/apt/lists/partial/download.virtualbox.org_virtualbox_*
== Adding Keys to Apt ==
I have added some launchpad repos and keep forgetting how to add the keys to prevent apt errors. Here is basically the command to use.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678
Replace 12345678 with the key id.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option. I know this is a hack, but I only need ipv4 working at this time. In the future I'm sure I will have to undo these changes, but for now they speed up my system.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo update-grub
It also looks like 2 of my favorite apps do DNS AAAA record lookups after ipv6 is disabled. The following removes the AAAA lookup which causes delays in firefox/seamonkey and ssh.
* '''Firefox'''
Edit the config by opening the page about:config and filter for ipv6. Toggle '''network.dns.disableIPv6''' to '''true'''.
*'''ssh'''
Edit /etc/ssh/ssh_config or ~/.ssh/config and add the following to the global host
host *
AddressFamily inet
== Display Grub2 menu ==
By default, if there is only one OS with grub2, no menu will be displayed.
Comment out the following line in /etc/default/grub
#GRUB_HIDDEN_TIMEOUT=0
This link has everything you want to know about the new grub2 options. http://ubuntuforums.org/showthread.php?t=1195275
== Check dpkg MD5 checksums ==
I'm sure there is an easier way, but I kept looking up this information. If you want to ensure that the files installed on your system match the checksums when the package was install, you can create the following script. I call mine, dpkg_md5check
#!/bin/bash
cd /
for i in /var/lib/dpkg/info/*.md5sums;
do
sudo md5sum -c $i |grep -v 'OK$'
done
You may get some false positives, but at least it gives you an indication of the majority of the files. I think RedHat has an easier and better method and I'll update this section when I find a better method for Ubuntu.
== Disable automounting of USB drives ==
Sometimes I need to be able to connect a USB drive and not have it automatically mount the device. The following command will disable this function
gconftool-2 --type bool --set /apps/nautilus/preferences/media_automount false
And this command will enable it again.
gconftool-2 --type bool --set /apps/nautilus/preferences/media_automount true
== Links ==
Here are some useful links
* http://www.howtoforge.com/perfect-server-ubuntu-9.04-ispconfig-2 - Nice tips for configuring an Ubuntu server
* https://help.launchpad.net/Packaging/PPA/InstallingSoftware - Installing Launchpad Software.
bd552f1fbcbc9bd9a716b526615f6441b81c7b14
Seamonkey
0
11
58
54
2010-01-29T23:46:33Z
Joe
2
/* Googlebar for Seamonkey 2.0 */
wikitext
text/x-wiki
== Seamonkey Download Dialog ==
It has happened a couple times where I lost the ability to see the download dialog. I recreated my profile and that fixed the problem. The easier was seems to be remove the downloads.rdf file in the profile directory that is causing the problem. For example,
cd ~/.mozilla/Default/a737728.slt
rm downloads.rdf
I've only see this a couple times.
== Googlebar for Seamonkey 2.0 ==
Googlebar for Seamonkey 2.0 has been updated and works great. You can find googlebar on the Mozilla plugin site https://addons.mozilla.org/en-US/seamonkey/addon/33
72e7134cc92047b296283bda79b9955d234ffbcb
72
58
2010-07-03T15:07:45Z
Joe
2
/* Googlebar for Seamonkey 2.0 */
wikitext
text/x-wiki
== Seamonkey Download Dialog ==
It has happened a couple times where I lost the ability to see the download dialog. I recreated my profile and that fixed the problem. The easier was seems to be remove the downloads.rdf file in the profile directory that is causing the problem. For example,
cd ~/.mozilla/Default/a737728.slt
rm downloads.rdf
I've only see this a couple times.
== Googlebar for Seamonkey 2.0 ==
Googlebar for Seamonkey 2.0 has been updated and works great. You can find googlebar on the Mozilla plugin site https://addons.mozilla.org/en-US/seamonkey/addon/33
== Files set to read only when Opened ==
There was a change put in 2008 that would cause files opened through email or from a web page to have the read-only permissions set. I understand the logic, but sometime you just need to move the data around before printing. Adding the following new key in '''about:config ''' will create the file with write access. Note: files are created in the /tmp directory and may not be retained, so if you want a copy be sure to use the Save As option of the app you are viewing it with.
In browser URL Enter: about:config
Add new boolean key: browser.helperApps.deleteTempFileOnExit to false
c0d0fa3a17d4291f5fd743fd3c789e6724ffb183
93
72
2014-06-05T00:53:50Z
Joe
2
/* Seamonkey Download Dialog */
wikitext
text/x-wiki
== Seamonkey Mail Color offset ==
With version 2.25 of Seamonkey, I did not like how email looked when I brought it up. The text with the light gray background turned white when it was selected and it's hard to read. It only happens on the skip lines with the light gray background. The white background lines were fine. The following code keeps the background blue when it is not in focus.
Create the file .mozilla/seamonkey/XXXXXX/chrome/userChrome.css where XXXXXX is your profile directory.
Put the following in the file:
/*border around selected tree rows in all trees*/
treechildren::-moz-tree-row(selected) {
border: 1px solid black !important;
background-color: #0066FF !important;
}
== Seamonkey Download Dialog ==
It has happened a couple times where I lost the ability to see the download dialog. I recreated my profile and that fixed the problem. The easier was seems to be remove the downloads.rdf file in the profile directory that is causing the problem. For example,
cd ~/.mozilla/Default/a737728.slt
rm downloads.rdf
I've only see this a couple times.
== Googlebar for Seamonkey 2.0 ==
Googlebar for Seamonkey 2.0 has been updated and works great. You can find googlebar on the Mozilla plugin site https://addons.mozilla.org/en-US/seamonkey/addon/33
== Files set to read only when Opened ==
There was a change put in 2008 that would cause files opened through email or from a web page to have the read-only permissions set. I understand the logic, but sometime you just need to move the data around before printing. Adding the following new key in '''about:config ''' will create the file with write access. Note: files are created in the /tmp directory and may not be retained, so if you want a copy be sure to use the Save As option of the app you are viewing it with.
In browser URL Enter: about:config
Add new boolean key: browser.helperApps.deleteTempFileOnExit to false
5ea52eccb7755c0f80179405c9ad58dafff9cd91
10.04 Lucid Lynx
0
15
61
2010-03-10T18:57:38Z
Joe
2
Created page with 'The page contains some quick fixes/changes for Ubuntu Lucid Lynx. == Move Title bar button layout back to the right == Lucid Lynx moved the buttons on the title bar from the rig…'
wikitext
text/x-wiki
The page contains some quick fixes/changes for Ubuntu Lucid Lynx.
== Move Title bar button layout back to the right ==
Lucid Lynx moved the buttons on the title bar from the right side of the window to the left. To get the buttons back to the old way do the following:
# Open '''gconf-editor''' using Alt-F2 or from a shell.
#Navigate to apps -> metacity -> general
# On the right pane, look for '''button_layout''' and change to menu:minimize,maximize,close
The ':' character in the button_layout value determines what is on the left and right of the title bar.
e5f503a407f5eb15cfb07ea86196e6bf759020c5
70
61
2010-06-14T22:32:47Z
Joe
2
/* Move Title bar button layout back to the right */
wikitext
text/x-wiki
The page contains some quick fixes/changes for Ubuntu Lucid Lynx.
== Move Title bar button layout back to the right ==
Lucid Lynx moved the buttons on the title bar from the right side of the window to the left. To get the buttons back to the old way do the following:
# Open '''gconf-editor''' using Alt-F2 or from a shell.
#Navigate to apps -> metacity -> general
# On the right pane, look for '''button_layout''' and change to menu:minimize,maximize,close
The ':' character in the button_layout value determines what is on the left and right of the title bar.
The command line to do this in one step is:
gconftool-2 --set /apps/metacity/general/button_layout --type string "menu:minimize,maximize,close"
aefbdab63947d4d0a59f52577be7bc4bb336e0ba
71
70
2010-07-03T15:02:03Z
Joe
2
/* Move Title bar button layout back to the right */
wikitext
text/x-wiki
The page contains some quick fixes/changes for Ubuntu Lucid Lynx.
== Move Title bar button layout back to the right ==
Lucid Lynx moved the buttons on the title bar from the right side of the window to the left. To get the buttons back to the old way do the following:
# Open '''gconf-editor''' using Alt-F2 or from a shell.
#Navigate to apps -> metacity -> general
# On the right pane, look for '''button_layout''' and change to menu:minimize,maximize,close
The ':' character in the button_layout value determines what is on the left and right of the title bar.
The command line to do this in one step is:
gconftool-2 --set /apps/metacity/general/button_layout --type string "menu:minimize,maximize,close"
== Add Sun Java Repo ==
Some apps just seem to work with only the Sun Java VM. Lucid moved the files to their partner repo. So to add Sun JVM back.
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo aptitude install sun-java6-jdk sun-java6-plugin
sudo update-alternatives --config java
0547e32f2ac9ed9b3b235ee6c5158e917822013e
73
71
2010-07-03T15:12:48Z
Joe
2
/* Add Sun Java Repo */
wikitext
text/x-wiki
The page contains some quick fixes/changes for Ubuntu Lucid Lynx.
== Move Title bar button layout back to the right ==
Lucid Lynx moved the buttons on the title bar from the right side of the window to the left. To get the buttons back to the old way do the following:
# Open '''gconf-editor''' using Alt-F2 or from a shell.
#Navigate to apps -> metacity -> general
# On the right pane, look for '''button_layout''' and change to menu:minimize,maximize,close
The ':' character in the button_layout value determines what is on the left and right of the title bar.
The command line to do this in one step is:
gconftool-2 --set /apps/metacity/general/button_layout --type string "menu:minimize,maximize,close"
== Add Sun Java Repo ==
Some apps just seem to work with only the Sun Java VM. Lucid moved the files to their partner repo. So to add Sun JVM back.
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo aptitude install sun-java6-jdk sun-java6-plugin
sudo update-alternatives --config java
If you want to use the Sun JVM for the browser, you need to remove the icedtea plugin.
sudo dpkg -P icedtea6-plugin
a0cd690bb329ae9339c64a14cad0543f153ecee9
74
73
2010-07-03T19:27:22Z
Joe
2
/* Add Sun Java Repo */
wikitext
text/x-wiki
The page contains some quick fixes/changes for Ubuntu Lucid Lynx.
== Move Title bar button layout back to the right ==
Lucid Lynx moved the buttons on the title bar from the right side of the window to the left. To get the buttons back to the old way do the following:
# Open '''gconf-editor''' using Alt-F2 or from a shell.
#Navigate to apps -> metacity -> general
# On the right pane, look for '''button_layout''' and change to menu:minimize,maximize,close
The ':' character in the button_layout value determines what is on the left and right of the title bar.
The command line to do this in one step is:
gconftool-2 --set /apps/metacity/general/button_layout --type string "menu:minimize,maximize,close"
== Add Sun Java Repo ==
Some apps just seem to work with only the Sun Java VM. Lucid moved the files to their partner repo. So to add Sun JVM back.
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo aptitude install sun-java6-jdk sun-java6-plugin
sudo update-alternatives --config java
If you want to use the Sun JVM for the browser, you need to remove the icedtea plugin.
sudo dpkg -P icedtea6-plugin
cb208b1023444168d535cbdb373fcfdcb3d113d9
9.10 Karmic Koala
0
12
62
49
2010-03-10T19:03:03Z
Joe
2
wikitext
text/x-wiki
I'm going to create a page for each release and this is my starter page for 9.10 Karmic Koala. I'm starting with duplicate information for the parent page but will fill these pages out as I come across thinks I think should be here.
== [[Upstart]] and SysV init differences ==
To me, this is one the the biggest change in Karmic as the old sysv tools have all been removed. I was confused on how upstart worked and how to control the order of what apps loaded when. See my [[Upstart]] page for what I found useful.
== Disable IPv6 on Karmic 9.10 ==
Karmic does not include ipv6 as a module, so the only way to disable it is with passing a kernel parameter during boot. I found the same problem with jaunty 9.04, but it was easy to edit the menu.lst file to add this option. I know this is a hack, but I only need ipv4 working at this time. In the future I'm sure I will have to undo these changes, but for now they speed up my system.
Using yout favorite editor using sudo, edit /etc/default/grub and change
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
then
sudo update-grub
It also looks like 2 of my favorite apps do DNS AAAA record lookups after ipv6 is disabled. The following removes the AAAA lookup which causes delays in firefox/seamonkey and ssh.
* '''Firefox'''
Edit the config by opening the page about:config and filter for ipv6. Toggle '''network.dns.disableIPv6''' to '''true'''.
*'''ssh'''
Edit /etc/ssh/ssh_config or ~/.ssh/config and add the following to the global host
host *
AddressFamily inet
== Display Grub2 menu ==
By default, if there is only one OS with grub2, no menu will be displayed.
Comment out the following line in /etc/default/grub
#GRUB_HIDDEN_TIMEOUT=0
This link has everything you want to know about the new grub2 options. http://ubuntuforums.org/showthread.php?t=1195275
== Disable 60 second time delay when logging out ==
The following link has pictures of what you need to do.
http://ubuntuguide.net/disable-60-seconds-delay-notification-in-ubuntu910karmic
Basically,
# Open gconf-editor
# Navigate to apps -> indicator-session
# Set suppress_logout_restart_shutdown
070d5523d589f717c38b31e281c02df321d6dd00
Google fetchmail
0
6
67
15
2010-05-30T14:57:39Z
Joe
2
wikitext
text/x-wiki
Google changes it cert for pop3 every soft often and you will get entries like this in your mail log for fetchmail.
fetchmail[3324]: pop.gmail.com fingerprints do not match!
in your .fetchmailrc file you will have a line like
options fetchall flush ssl sslfingerprint '92:73:17:4C:34:4B:68:F7:B2:17:71:42:0D:7F:9F:33'
To find the new fingerprint, use the following command
openssl s_client -connect pop.gmail.com:995 -showcerts < /dev/null | openssl x509 -fingerprint -md5 -text | grep Fingerprint | awk -F= '{print $2}'
9069b00dcb08d6b5b475df507c7e44364bee592c
Main Page
0
1
68
44
2010-06-11T00:04:59Z
Joe
2
wikitext
text/x-wiki
Just getting the site going. More stuff will be here soon.
I using this site as a scratch pad of things I find cool that make Linux easier. I love playing with different Linux distributions and will document here things that took me a while to figure out and that may be useful to others. Here are some pages I'm working on.
*[[Ubuntu Tips]]
*[[Fedora 11]]
*[[MySQL]]
*[[Good Monitoring Tools]]
*[[Virtualization]]
*[[RHEL]]
*[[OSD Hacks]]
*[[Google fetchmail]]
*[[Seamonkey]]
* [[Fun Tips]]
da580b20a78f8b6d294226b37784229473a1aa4e
82
68
2013-01-16T07:14:11Z
Joe
2
wikitext
text/x-wiki
Just getting the site going. More stuff will be here soon.
I using this site as a scratch pad of things I find cool that make Linux easier. I love playing with different Linux distributions and will document here things that took me a while to figure out and that may be useful to others. Here are some pages I'm working on.
*[[Ubuntu Tips]]
*[[Fedora 11]]
*[[Fedora 18]]
*[[MySQL]]
*[[Good Monitoring Tools]]
*[[Virtualization]]
*[[RHEL]]
*[[OSD Hacks]]
*[[Google fetchmail]]
*[[Seamonkey]]
* [[Fun Tips]]
9f0e33b253c1092130d3d056f3350c098f81ead5
85
82
2013-01-16T07:26:58Z
Joe
2
wikitext
text/x-wiki
I'm using this site as a scratch pad of things I find cool that make Linux easier. I love playing with different Linux distributions and will document here things that took me a while to figure out and that may be useful to others. Here are some pages I'm working on.
*[[Ubuntu Tips]]
*[[Fedora 11]]
*[[Fedora 18]]
*[[MySQL]]
*[[Good Monitoring Tools]]
*[[Virtualization]]
*[[RHEL]]
*[[OSD Hacks]]
*[[Google fetchmail]]
*[[Seamonkey]]
* [[Fun Tips]]
6103224cd0dd266ecbd8a8b8a9d3dda2e3fd3417
Fun Tips
0
16
69
2010-06-11T00:09:33Z
Joe
2
Created page with 'At least these are fun tips for me. == Fun with epoch dates == Unix does a great job of storing time as a long integer value. They call this time Epoch and it marks the seconds…'
wikitext
text/x-wiki
At least these are fun tips for me.
== Fun with epoch dates ==
Unix does a great job of storing time as a long integer value. They call this time Epoch and it marks the seconds in time from January 1, 1970 at midnight. I see these times in various logs and have wrote programs to convert them. There is an easy way to do this at the command prompt. Just us the '@' sign in front of the value.
date -d @1234567890
To use date to dump the epoch time:
date +%s
f110d9c80a8ecd83208519a62cb93ee51790cada
KVM Guest Shutdown Script
0
17
75
2010-12-16T00:50:48Z
Joe
2
Created page with "Place holder for shutdown script."
wikitext
text/x-wiki
Place holder for shutdown script.
758a92f8bbba7cab7adacdde457b920f6afe9af5
Virtualization
0
7
76
40
2010-12-16T14:00:55Z
Joe
2
/* Fix VMware 6.5.3 on Ubuntu Karmic 9.10 */
wikitext
text/x-wiki
How to tell if your processor supports Virtualization.
egrep 'vmx|svm' /proc/cpuinfo
or
cat /proc/cpuinfo
And look for the following CPU flags
* vmx – (intel)
* svm – (amd)
If your cpuinfo file has a flag "svm" then you have AMD-v hardware virtualization support (aka pacifica) on
your cpu.
== KVM ACPI Shutdown of Guests ==
These are hacks that allow guest system to be shutdown using the virtsh shutdown command. I found problems with WinXP and Ubuntu Lucid when trying to do a shutdown. This should be cleaner than using the destroy option.
=== Windows XP ===
If you are using Windows XP using RDP, an ACPI shutdown may not work if you leave a session running. You can modify the popup that appears on the console using information from [http://msdn.microsoft.com/en-us/library/ms940850(v=WinEmbedded.5).aspx Enabling Default Reply].
Here is my registry file that applies the keys to the registry.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Error Message Instrument]
"EnableDefaultReply"=dword:00000001
"EnableLogging"=dword:00000001
"LogSeverity"=dword:00000003
=== Ubuntu Lucid Desktop ===
Ubuntu desktop displays a dialog box for 60 seconds before it allows the image to be halted. To allow ACPI shutdown to work from KVM, acpid must be running and /etc/acpi/powerbtn.sh needs to be modified.
At the top of /etc/acpi/powerbtn.sh, Add the halt command,
#!/bin/sh
# /etc/acpi/powerbtn.sh
# Initiates a shutdown when the power putton has been
# pressed.
'''halt -p'''
[ -r /usr/share/acpi-support/power-funcs ] && . /usr/share/acpi-support/power-fu
ncs
== Fix VMware 6.5.3 on Ubuntu Karmic 9.10 ==
Install freezes when trying to do an install. I found the following tips to work properly.
You need to be root, so do something like sudo su - and change to the directory where the vmware bundle is.
chmod 755 VMware-Workstation-6.5.3-185404.*.bundle
export VMWARE_SKIP_MODULES=true
./VMware-Workstation-6.5.3-185404.*.bundle
After the install completes, do the following.
vmware-modconfig --console --install-all
Fix vmware command if there is an issue with the mouse losing focus because the display is too big.
mv /usr/bin/vmware /usr/bin/vmware.real
and create the file /usr/bin/vmware with the following content.
#!/bin/bash
export VMWARE_USE_SHIPPED_GTK=force
/usr/bin/vmware.real $@
Make sure you chmod the file
chmod 755 /usr/bin/vmware
6fff7c5068455b2b31a37af2286a4e6f038b5c56
77
76
2010-12-16T14:02:03Z
Joe
2
wikitext
text/x-wiki
== CPU Virtualization Support ==
How to tell if your processor supports Virtualization.
egrep 'vmx|svm' /proc/cpuinfo
or
cat /proc/cpuinfo
And look for the following CPU flags
* vmx – (intel)
* svm – (amd)
If your cpuinfo file has a flag "svm" then you have AMD-v hardware virtualization support (aka pacifica) on
your cpu.
== KVM ACPI Shutdown of Guests ==
These are hacks that allow guest system to be shutdown using the virtsh shutdown command. I found problems with WinXP and Ubuntu Lucid when trying to do a shutdown. This should be cleaner than using the destroy option.
=== Windows XP ===
If you are using Windows XP using RDP, an ACPI shutdown may not work if you leave a session running. You can modify the popup that appears on the console using information from [http://msdn.microsoft.com/en-us/library/ms940850(v=WinEmbedded.5).aspx Enabling Default Reply].
Here is my registry file that applies the keys to the registry.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Error Message Instrument]
"EnableDefaultReply"=dword:00000001
"EnableLogging"=dword:00000001
"LogSeverity"=dword:00000003
=== Ubuntu Lucid Desktop ===
Ubuntu desktop displays a dialog box for 60 seconds before it allows the image to be halted. To allow ACPI shutdown to work from KVM, acpid must be running and /etc/acpi/powerbtn.sh needs to be modified.
At the top of /etc/acpi/powerbtn.sh, Add the halt command,
#!/bin/sh
# /etc/acpi/powerbtn.sh
# Initiates a shutdown when the power putton has been
# pressed.
'''halt -p'''
[ -r /usr/share/acpi-support/power-funcs ] && . /usr/share/acpi-support/power-fu
ncs
== Fix VMware 6.5.3 on Ubuntu Karmic 9.10 ==
Install freezes when trying to do an install. I found the following tips to work properly.
You need to be root, so do something like sudo su - and change to the directory where the vmware bundle is.
chmod 755 VMware-Workstation-6.5.3-185404.*.bundle
export VMWARE_SKIP_MODULES=true
./VMware-Workstation-6.5.3-185404.*.bundle
After the install completes, do the following.
vmware-modconfig --console --install-all
Fix vmware command if there is an issue with the mouse losing focus because the display is too big.
mv /usr/bin/vmware /usr/bin/vmware.real
and create the file /usr/bin/vmware with the following content.
#!/bin/bash
export VMWARE_USE_SHIPPED_GTK=force
/usr/bin/vmware.real $@
Make sure you chmod the file
chmod 755 /usr/bin/vmware
50719611780438cb8594b5565702e576991bb73d
78
77
2010-12-16T14:02:41Z
Joe
2
/* Ubuntu Lucid Desktop */
wikitext
text/x-wiki
== CPU Virtualization Support ==
How to tell if your processor supports Virtualization.
egrep 'vmx|svm' /proc/cpuinfo
or
cat /proc/cpuinfo
And look for the following CPU flags
* vmx – (intel)
* svm – (amd)
If your cpuinfo file has a flag "svm" then you have AMD-v hardware virtualization support (aka pacifica) on
your cpu.
== KVM ACPI Shutdown of Guests ==
These are hacks that allow guest system to be shutdown using the virtsh shutdown command. I found problems with WinXP and Ubuntu Lucid when trying to do a shutdown. This should be cleaner than using the destroy option.
=== Windows XP ===
If you are using Windows XP using RDP, an ACPI shutdown may not work if you leave a session running. You can modify the popup that appears on the console using information from [http://msdn.microsoft.com/en-us/library/ms940850(v=WinEmbedded.5).aspx Enabling Default Reply].
Here is my registry file that applies the keys to the registry.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Error Message Instrument]
"EnableDefaultReply"=dword:00000001
"EnableLogging"=dword:00000001
"LogSeverity"=dword:00000003
=== Ubuntu Lucid Desktop ===
Ubuntu desktop displays a dialog box for 60 seconds before it allows the image to be halted. To allow ACPI shutdown to work from KVM, acpid must be running and /etc/acpi/powerbtn.sh needs to be modified.
At the top of /etc/acpi/powerbtn.sh, Add the halt command,
#!/bin/sh
# /etc/acpi/powerbtn.sh
# Initiates a shutdown when the power putton has been
# pressed.
'''halt -p'''
[ -r /usr/share/acpi-support/power-funcs ] && . /usr/share/acpi-support/power-funcs
== Fix VMware 6.5.3 on Ubuntu Karmic 9.10 ==
Install freezes when trying to do an install. I found the following tips to work properly.
You need to be root, so do something like sudo su - and change to the directory where the vmware bundle is.
chmod 755 VMware-Workstation-6.5.3-185404.*.bundle
export VMWARE_SKIP_MODULES=true
./VMware-Workstation-6.5.3-185404.*.bundle
After the install completes, do the following.
vmware-modconfig --console --install-all
Fix vmware command if there is an issue with the mouse losing focus because the display is too big.
mv /usr/bin/vmware /usr/bin/vmware.real
and create the file /usr/bin/vmware with the following content.
#!/bin/bash
export VMWARE_USE_SHIPPED_GTK=force
/usr/bin/vmware.real $@
Make sure you chmod the file
chmod 755 /usr/bin/vmware
dfb254a48c71d8d200e0ba30f64bbdb770e198e5
79
78
2010-12-21T17:17:24Z
Joe
2
/* Windows XP */
wikitext
text/x-wiki
== CPU Virtualization Support ==
How to tell if your processor supports Virtualization.
egrep 'vmx|svm' /proc/cpuinfo
or
cat /proc/cpuinfo
And look for the following CPU flags
* vmx – (intel)
* svm – (amd)
If your cpuinfo file has a flag "svm" then you have AMD-v hardware virtualization support (aka pacifica) on
your cpu.
== KVM ACPI Shutdown of Guests ==
These are hacks that allow guest system to be shutdown using the virtsh shutdown command. I found problems with WinXP and Ubuntu Lucid when trying to do a shutdown. This should be cleaner than using the destroy option.
=== Shutdown Guest Script for RedHat / CentOS 5.5 ===
Here is a script I put together that will shutdown guests systems On Redhat and CentOS 5.5 systems. I think this method is more clean if you forget to shutdown all virtual systems before you shutdown the host system. You need to make sure that all guests can be turned off with ACPI Shutdown from libvirtd.
[http://www.joehacker.com/files/kvm_shutdown.txt KVM Shutdown]
The above link should be save to /etc/init.d, permission set to 755, and then enables with chkconfig.
cp kvm_shutdown.txt /etc/init.d/kvm_shutdown
chmod 755 /etc/init.d/kvm_shutdown
chkconfig --add kvm_shutdown
The script will go through all running systems and send the '''virsh shutdown sys_name''' command. It will test every 5 seconds for 90 seconds to see if the system are still up. If the systems are down, it will exit and the host will continue to shutdown. If after 90 seconds systems are still running, the script will send a '''destroy''' command to the ones left running.
=== Windows XP ===
If you are using Windows XP using RDP, an ACPI shutdown may not work if you leave a session running. You can modify the popup that appears on the console using information from [http://msdn.microsoft.com/en-us/library/ms940850(v=WinEmbedded.5).aspx Enabling Default Reply].
Here is my registry file that applies the keys to the registry.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Error Message Instrument]
"EnableDefaultReply"=dword:00000001
"EnableLogging"=dword:00000001
"LogSeverity"=dword:00000003
=== Ubuntu Lucid Desktop ===
Ubuntu desktop displays a dialog box for 60 seconds before it allows the image to be halted. To allow ACPI shutdown to work from KVM, acpid must be running and /etc/acpi/powerbtn.sh needs to be modified.
At the top of /etc/acpi/powerbtn.sh, Add the halt command,
#!/bin/sh
# /etc/acpi/powerbtn.sh
# Initiates a shutdown when the power putton has been
# pressed.
'''halt -p'''
[ -r /usr/share/acpi-support/power-funcs ] && . /usr/share/acpi-support/power-funcs
== Fix VMware 6.5.3 on Ubuntu Karmic 9.10 ==
Install freezes when trying to do an install. I found the following tips to work properly.
You need to be root, so do something like sudo su - and change to the directory where the vmware bundle is.
chmod 755 VMware-Workstation-6.5.3-185404.*.bundle
export VMWARE_SKIP_MODULES=true
./VMware-Workstation-6.5.3-185404.*.bundle
After the install completes, do the following.
vmware-modconfig --console --install-all
Fix vmware command if there is an issue with the mouse losing focus because the display is too big.
mv /usr/bin/vmware /usr/bin/vmware.real
and create the file /usr/bin/vmware with the following content.
#!/bin/bash
export VMWARE_USE_SHIPPED_GTK=force
/usr/bin/vmware.real $@
Make sure you chmod the file
chmod 755 /usr/bin/vmware
59965b2614970ffcdeb7cd9df7f520c86b1976fd
80
79
2011-01-14T00:02:09Z
Joe
2
wikitext
text/x-wiki
== CPU Virtualization Support ==
How to tell if your processor supports Virtualization.
egrep 'vmx|svm' /proc/cpuinfo
or
cat /proc/cpuinfo
And look for the following CPU flags
* vmx – (intel)
* svm – (amd)
If your cpuinfo file has a flag "svm" then you have AMD-v hardware virtualization support (aka pacifica) on
your cpu.
== KVM ACPI Shutdown of Guests ==
These are hacks that allow guest system to be shutdown using the virtsh shutdown command. I found problems with WinXP and Ubuntu Lucid when trying to do a shutdown. This should be cleaner than using the destroy option.
=== Shutdown Guest Script for RedHat / CentOS 5.5 ===
Here is a script I put together that will shutdown guests systems On Redhat and CentOS 5.5 systems. I think this method is more clean if you forget to shutdown all virtual systems before you shutdown the host system. You need to make sure that all guests can be turned off with ACPI Shutdown from libvirtd.
[http://www.joehacker.com/files/kvm_shutdown.txt KVM Shutdown]
The above link should be save to /etc/init.d, permission set to 755, and then enables with chkconfig.
cp kvm_shutdown.txt /etc/init.d/kvm_shutdown
chmod 755 /etc/init.d/kvm_shutdown
chkconfig --add kvm_shutdown
The script will go through all running systems and send the '''virsh shutdown sys_name''' command. It will test every 5 seconds for 90 seconds to see if the system are still up. If the systems are down, it will exit and the host will continue to shutdown. If after 90 seconds systems are still running, the script will send a '''destroy''' command to the ones left running.
=== Ubuntu Lucid Desktop ===
Ubuntu desktop displays a dialog box for 60 seconds before it allows the image to be halted. To allow ACPI shutdown to work from KVM, acpid must be running and /etc/acpi/powerbtn.sh needs to be modified.
At the top of /etc/acpi/powerbtn.sh, Add the halt command,
#!/bin/sh
# /etc/acpi/powerbtn.sh
# Initiates a shutdown when the power putton has been
# pressed.
'''halt -p'''
[ -r /usr/share/acpi-support/power-funcs ] && . /usr/share/acpi-support/power-funcs
== Fix VMware 6.5.3 on Ubuntu Karmic 9.10 ==
Install freezes when trying to do an install. I found the following tips to work properly.
You need to be root, so do something like sudo su - and change to the directory where the vmware bundle is.
chmod 755 VMware-Workstation-6.5.3-185404.*.bundle
export VMWARE_SKIP_MODULES=true
./VMware-Workstation-6.5.3-185404.*.bundle
After the install completes, do the following.
vmware-modconfig --console --install-all
Fix vmware command if there is an issue with the mouse losing focus because the display is too big.
mv /usr/bin/vmware /usr/bin/vmware.real
and create the file /usr/bin/vmware with the following content.
#!/bin/bash
export VMWARE_USE_SHIPPED_GTK=force
/usr/bin/vmware.real $@
Make sure you chmod the file
chmod 755 /usr/bin/vmware
49f8c24c267706c73d09f74e1b3dd63c0852e162
Fedora 18
0
18
83
2013-01-16T07:19:19Z
Joe
2
Created page with "== Getting VMWare 9 to compile in fc18 == After updating to Fedora 18, VMWare 9.0.1 will not compile because it cannot find the correct version.h file. Simple fix is to create a..."
wikitext
text/x-wiki
== Getting VMWare 9 to compile in fc18 ==
After updating to Fedora 18, VMWare 9.0.1 will not compile because it cannot find the correct version.h file. Simple fix is to create a symlink and vmware will compile the needed modules.
The following command will create the link.
ln -s /usr/src/kernels/$(uname -r)/include/generated/uapi/linux/version.h /usr/src/kernels/$(uname -r)/include/linux/version.h
5b618e3b70bd89c263aa4b334c18f0ba4ffcdd38
84
83
2013-01-16T07:25:38Z
Joe
2
/* Getting VMWare 9 to compile in fc18 */
wikitext
text/x-wiki
== Getting VMWare 9 to compile in fc18 ==
After updating to Fedora 18, VMWare 9.0.1 will not compile because it cannot find the correct version.h file. Simple fix is to create a symlink and vmware will compile the needed modules.
First make sure that the compiler and header packages are installed.
yum install gcc kernel-devel kernel-headers
The following command will create the link.
ln -s /usr/src/kernels/$(uname -r)/include/generated/uapi/linux/version.h /usr/src/kernels/$(uname -r)/include/linux/version.h
8f768a8e7a01708bf90c048166243ea737e7d1a6
86
84
2013-01-16T15:16:35Z
Joe
2
/* Getting VMWare 9 to compile in fc18 */
wikitext
text/x-wiki
== Getting VMWare 9 to compile in fc18 ==
After upgrading to Fedora 18, VMWare 9.0.1, you get and error that "Kernel headers for version 3.7.2-201.fc18.x86_64 were not found". VMWare will not compile because it cannot find the correct version.h file. Simple fix is to create a symlink and vmware will compile the needed modules.
First make sure that the compiler and header packages are installed.
yum install gcc kernel-devel kernel-headers
The following command will create the link.
ln -s /usr/src/kernels/$(uname -r)/include/generated/uapi/linux/version.h /usr/src/kernels/$(uname -r)/include/linux/version.h
9a58f6beca172332bc41a8c7c028a07d92fb9c6b
87
86
2013-01-16T15:17:10Z
Joe
2
/* Getting VMWare 9 to compile in fc18 */
wikitext
text/x-wiki
== Getting VMWare 9 to compile in fc18 ==
After upgrading to Fedora 18, VMWare 9.0.1, you get and error that "Kernel headers for version 3.7.2-201.fc18.x86_64 were not found". VMWare will not compile because it cannot find the correct version.h file. Simple fix is to create a symlink and vmware will compile the needed modules.
First make sure that the compiler and header packages are installed.
sudo yum install gcc kernel-devel kernel-headers
The following command will create the link.
sudo ln -s /usr/src/kernels/$(uname -r)/include/generated/uapi/linux/version.h /usr/src/kernels/$(uname -r)/include/linux/version.h
1fd1a69a725dab97ab792135b5bc8b51f9a9210e
88
87
2013-01-26T07:10:32Z
Joe
2
/* Getting VMWare 9 to compile in fc18 */
wikitext
text/x-wiki
== Getting VMWare 9 to compile in fc18 ==
After upgrading to Fedora 18, VMWare 9.0.1, you get and error that "Kernel headers for version 3.7.2-201.fc18.x86_64 were not found". VMWare will not compile because it cannot find the correct version.h file. Simple fix is to create a symlink and vmware will compile the needed modules.
First make sure that the compiler and header packages are installed.
sudo yum install gcc kernel-devel kernel-headers
The following command will create the link.
sudo ln -s /usr/src/kernels/$(uname -r)/include/generated/uapi/linux/version.h /usr/src/kernels/$(uname -r)/include/linux/version.h
== Issues with Wireless driver during suspend / resume ==
My wireless driver didn't suspend correctly and it acted bad when the system was resumed. I found the best solution for me was to have systemd unload the wireless module during suspend and reload during resume.
cd /etc/systemd/system
Create the following files:
pre-sleep.service
[Unit]
Description=Prepare System Sleep
[Service]
Type=oneshot
ExecStart=/usr/sbin/modprobe -r iwl4965
[Install]
WantedBy=sleep.target
post-sleep.service
[Unit]
Description=Finish System Sleep
After=suspend.target
[Service]
Type=oneshot
ExecStart=/usr/sbin/modprobe iwl4965
[Install]
WantedBy=suspend.target
You then need to enable the new scripts
systemctl enable pre-sleep.service
systemctl enable post-sleep.service
7e0975892351f53224cc2592c1565566bc157185
89
88
2013-01-26T07:12:18Z
Joe
2
/* Getting VMWare 9 to compile in fc18 */
wikitext
text/x-wiki
== Getting VMWare 9 to compile in fc18 ==
After upgrading to Fedora 18, VMWare 9.0.1, you get and error that "Kernel headers for version 3.7.2-201.fc18.x86_64 were not found". VMWare will not compile because it cannot find the correct version.h file. Simple fix is to create a symlink and vmware will compile the needed modules.
First make sure that the compiler and header packages are installed.
sudo yum install gcc kernel-devel kernel-headers
The following command will create the link.
sudo ln -s /usr/src/kernels/$(uname -r)/include/generated/uapi/linux/version.h /usr/src/kernels/$(uname -r)/include/linux/version.h
Now just start vmware and the modules will compile and install.
== Issues with Wireless driver during suspend / resume ==
My wireless driver didn't suspend correctly and it acted bad when the system was resumed. I found the best solution for me was to have systemd unload the wireless module during suspend and reload during resume.
cd /etc/systemd/system
Create the following files:
pre-sleep.service
[Unit]
Description=Prepare System Sleep
[Service]
Type=oneshot
ExecStart=/usr/sbin/modprobe -r iwl4965
[Install]
WantedBy=sleep.target
post-sleep.service
[Unit]
Description=Finish System Sleep
After=suspend.target
[Service]
Type=oneshot
ExecStart=/usr/sbin/modprobe iwl4965
[Install]
WantedBy=suspend.target
You then need to enable the new scripts
systemctl enable pre-sleep.service
systemctl enable post-sleep.service
46a2057a32143dafad6dba0538fa009f91148786
90
89
2013-02-19T06:38:43Z
Joe
2
/* Issues with Wireless driver during suspend / resume */
wikitext
text/x-wiki
== Getting VMWare 9 to compile in fc18 ==
After upgrading to Fedora 18, VMWare 9.0.1, you get and error that "Kernel headers for version 3.7.2-201.fc18.x86_64 were not found". VMWare will not compile because it cannot find the correct version.h file. Simple fix is to create a symlink and vmware will compile the needed modules.
First make sure that the compiler and header packages are installed.
sudo yum install gcc kernel-devel kernel-headers
The following command will create the link.
sudo ln -s /usr/src/kernels/$(uname -r)/include/generated/uapi/linux/version.h /usr/src/kernels/$(uname -r)/include/linux/version.h
Now just start vmware and the modules will compile and install.
== Issues with Wireless driver during suspend / resume ==
My wireless driver didn't suspend correctly and it acted bad when the system was resumed. I found the best solution for me was to have systemd unload the wireless module during suspend and reload during resume.
Find out what wireless driver you have, in my example it is going to be iwl4965
#ethtool -i wlan0 | grep driver
driver: iwl4965
#cd /etc/systemd/system
Create the following files:
wifi-sleep.service
[Unit]
Description=deactivate / activate wireless modules
Before=sleep.target
StopWhenUnneeded=yes
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/modprobe -r iwl4965
ExecStop=/usr/sbin/modprobe iwl4965
[Install]
WantedBy=sleep.target
You then need to enable the new scripts
systemctl enable wifi-sleep.service
To disable the service
systemctl disable wifi-sleep.service
ea6f52b8212d210412c60b2b625a82b30c2af240
91
90
2013-02-19T06:39:32Z
Joe
2
/* Issues with Wireless driver during suspend / resume */
wikitext
text/x-wiki
== Getting VMWare 9 to compile in fc18 ==
After upgrading to Fedora 18, VMWare 9.0.1, you get and error that "Kernel headers for version 3.7.2-201.fc18.x86_64 were not found". VMWare will not compile because it cannot find the correct version.h file. Simple fix is to create a symlink and vmware will compile the needed modules.
First make sure that the compiler and header packages are installed.
sudo yum install gcc kernel-devel kernel-headers
The following command will create the link.
sudo ln -s /usr/src/kernels/$(uname -r)/include/generated/uapi/linux/version.h /usr/src/kernels/$(uname -r)/include/linux/version.h
Now just start vmware and the modules will compile and install.
== Issues with Wireless driver during suspend / resume ==
My wireless driver didn't suspend correctly and it acted bad when the system was resumed. I found the best solution for me was to have systemd unload the wireless module during suspend and reload during resume.
Find out what wireless driver you have, in my example it is going to be iwl4965. Replace iwl4965 in the wifi-sleep.service file with your actual driver.
#ethtool -i wlan0 | grep driver
driver: iwl4965
#cd /etc/systemd/system
Create the following files:
wifi-sleep.service
[Unit]
Description=deactivate / activate wireless modules
Before=sleep.target
StopWhenUnneeded=yes
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/modprobe -r iwl4965
ExecStop=/usr/sbin/modprobe iwl4965
[Install]
WantedBy=sleep.target
You then need to enable the new scripts
systemctl enable wifi-sleep.service
To disable the service
systemctl disable wifi-sleep.service
e9f0f61874e9d9cf6002e216f646769bcbab173b
92
91
2013-02-19T06:40:15Z
Joe
2
/* Issues with Wireless driver during suspend / resume */
wikitext
text/x-wiki
== Getting VMWare 9 to compile in fc18 ==
After upgrading to Fedora 18, VMWare 9.0.1, you get and error that "Kernel headers for version 3.7.2-201.fc18.x86_64 were not found". VMWare will not compile because it cannot find the correct version.h file. Simple fix is to create a symlink and vmware will compile the needed modules.
First make sure that the compiler and header packages are installed.
sudo yum install gcc kernel-devel kernel-headers
The following command will create the link.
sudo ln -s /usr/src/kernels/$(uname -r)/include/generated/uapi/linux/version.h /usr/src/kernels/$(uname -r)/include/linux/version.h
Now just start vmware and the modules will compile and install.
== Issues with Wireless driver during suspend / resume ==
My wireless driver didn't suspend correctly and it acted bad when the system was resumed. I found the best solution for me was to have systemd unload the wireless module during suspend and reload during resume.
Find out what wireless driver you have, in my example it is going to be iwl4965. Replace iwl4965 in the wifi-sleep.service file with your actual driver.
# ethtool -i wlan0 | grep driver
driver: iwl4965
# cd /etc/systemd/system
Create the following files:
wifi-sleep.service
[Unit]
Description=deactivate / activate wireless modules
Before=sleep.target
StopWhenUnneeded=yes
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/modprobe -r iwl4965
ExecStop=/usr/sbin/modprobe iwl4965
[Install]
WantedBy=sleep.target
You then need to enable the new scripts
# systemctl enable wifi-sleep.service
To disable the service
# systemctl disable wifi-sleep.service
19843fa86ef313e8d0f6ab72590a4bdbb398b10d
How to build a Stratum 1 NTP server
0
19
94
2017-03-27T19:53:46Z
Joe
2
Created page with "== Building a Stratum 1 NTP server == I wish I would have read [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt] Paper first. Is you want a ch..."
wikitext
text/x-wiki
== Building a Stratum 1 NTP server ==
I wish I would have read [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt] Paper first. Is you want a cheap server, that is the easiest method to follow.
== Links ==
* [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt - BUILDING A RASPBERRY PI ZERO GPS NETWORK TIME SERVER FOR UNDER $50]
* [https://arstechnica.com/security/2016/02/using-ipv6-with-linux-youve-likely-been-visited-by-shodan-and-other-scanners/ Using IPv6 with Linux? You’ve likely been visited by Shodan and other scanners]
1292b5aadeb8a44e1b1b83b45cff88ea74c09d51
95
94
2017-04-04T02:52:02Z
Joe
2
/* Links */
wikitext
text/x-wiki
== Building a Stratum 1 NTP server ==
I wish I would have read [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt] Paper first. Is you want a cheap server, that is the easiest method to follow.
== Links ==
* [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt - BUILDING A RASPBERRY PI ZERO GPS NETWORK TIME SERVER FOR UNDER $50]
* [https://arstechnica.com/security/2016/02/using-ipv6-with-linux-youve-likely-been-visited-by-shodan-and-other-scanners/ Using IPv6 with Linux? You’ve likely been visited by Shodan and other scanners]
* [https://openenergymonitor.org/forum-archive/node/12311.html Fix RS-232 Header pins]
d47562d4f9cffc4c74555e7e24bfdc9afad322fc
96
95
2017-04-05T03:23:05Z
Joe
2
/* Links */
wikitext
text/x-wiki
== Building a Stratum 1 NTP server ==
I wish I would have read [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt] Paper first. Is you want a cheap server, that is the easiest method to follow.
== Links ==
* [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt - BUILDING A RASPBERRY PI ZERO GPS NETWORK TIME SERVER FOR UNDER $50]
* [https://arstechnica.com/security/2016/02/using-ipv6-with-linux-youve-likely-been-visited-by-shodan-and-other-scanners/ Using IPv6 with Linux? You’ve likely been visited by Shodan and other scanners]
* [https://openenergymonitor.org/forum-archive/node/12311.html Fix RS-232 Header pins]
* [http://www.catb.org/gpsd/gpsd-time-service-howto.html GPSD howto and troubleshooting]
35af879c3944e05af5ca251348b1b75403930976
97
96
2017-04-05T03:34:50Z
Joe
2
/* Building a Stratum 1 NTP server */
wikitext
text/x-wiki
== Building a Stratum 1 NTP server ==
I wish I would have read [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt] Paper first. Is you want a cheap server, that is the easiest method to follow.
== Raspberry PI Config ==
RPI 3 - /etc/default/gpsd
DEVICES="/dev/pps0 /dev/ttyS0"
GPSD_OPTIONS="-n"
== Raspberry PI issues ==
The raspberry PI ships with gpsd 3.11-3. That version will not grab the PPS signal on RPI < 3, and will not work properly at on a RPI 3. The backport version would only core for me. I instead built version 3.15-2build1 and that worked on all RPI's tested.
== Links ==
* [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt - BUILDING A RASPBERRY PI ZERO GPS NETWORK TIME SERVER FOR UNDER $50]
* [https://arstechnica.com/security/2016/02/using-ipv6-with-linux-youve-likely-been-visited-by-shodan-and-other-scanners/ Using IPv6 with Linux? You’ve likely been visited by Shodan and other scanners]
* [https://openenergymonitor.org/forum-archive/node/12311.html Fix RS-232 Header pins]
* [http://www.catb.org/gpsd/gpsd-time-service-howto.html GPSD howto and troubleshooting]
9d1be35fa07da6b1dd701c6cba460f0aab4d8a6a
98
97
2017-04-05T03:41:53Z
Joe
2
/* Raspberry PI Config */
wikitext
text/x-wiki
== Building a Stratum 1 NTP server ==
I wish I would have read [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt] Paper first. Is you want a cheap server, that is the easiest method to follow.
== Raspberry PI Config ==
RPI 3 - /etc/default/gpsd
DEVICES="/dev/pps0 /dev/ttyAMA0"
GPSD_OPTIONS="-n"
Add to /boot/config.txt
# GPS NTP PPS signal on GPIO pin 18
dtoverlay=pps-gpio,gpiopin=18
# On RPI3, Bluetooth messes up GPIO RS232 header
dtoverlay=pi3-disable-bt
== Raspberry PI issues ==
The raspberry PI ships with gpsd 3.11-3. That version will not grab the PPS signal on RPI < 3, and will not work properly at on a RPI 3. The backport version would only core for me. I instead built version 3.15-2build1 and that worked on all RPI's tested.
== Links ==
* [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt - BUILDING A RASPBERRY PI ZERO GPS NETWORK TIME SERVER FOR UNDER $50]
* [https://arstechnica.com/security/2016/02/using-ipv6-with-linux-youve-likely-been-visited-by-shodan-and-other-scanners/ Using IPv6 with Linux? You’ve likely been visited by Shodan and other scanners]
* [https://openenergymonitor.org/forum-archive/node/12311.html Fix RS-232 Header pins]
* [http://www.catb.org/gpsd/gpsd-time-service-howto.html GPSD howto and troubleshooting]
e85d67e8a7dab1b3690ab7ad8f278615238d7c18
99
98
2017-04-05T03:42:58Z
Joe
2
/* Links */
wikitext
text/x-wiki
== Building a Stratum 1 NTP server ==
I wish I would have read [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt] Paper first. Is you want a cheap server, that is the easiest method to follow.
== Raspberry PI Config ==
RPI 3 - /etc/default/gpsd
DEVICES="/dev/pps0 /dev/ttyAMA0"
GPSD_OPTIONS="-n"
Add to /boot/config.txt
# GPS NTP PPS signal on GPIO pin 18
dtoverlay=pps-gpio,gpiopin=18
# On RPI3, Bluetooth messes up GPIO RS232 header
dtoverlay=pi3-disable-bt
== Raspberry PI issues ==
The raspberry PI ships with gpsd 3.11-3. That version will not grab the PPS signal on RPI < 3, and will not work properly at on a RPI 3. The backport version would only core for me. I instead built version 3.15-2build1 and that worked on all RPI's tested.
== Links ==
* [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt - BUILDING A RASPBERRY PI ZERO GPS NETWORK TIME SERVER FOR UNDER $50]
* [https://arstechnica.com/security/2016/02/using-ipv6-with-linux-youve-likely-been-visited-by-shodan-and-other-scanners/ Using IPv6 with Linux? You’ve likely been visited by Shodan and other scanners]
* [https://openenergymonitor.org/forum-archive/node/12311.html Fix RS-232 Header pins on RPI3]
* [http://www.catb.org/gpsd/gpsd-time-service-howto.html GPSD howto and troubleshooting]
33cd938002d2f8e9cb75de6adea34c8ed0ca8fb9
100
99
2017-04-05T13:59:51Z
Joe
2
/* Raspberry PI issues */
wikitext
text/x-wiki
== Building a Stratum 1 NTP server ==
I wish I would have read [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt] Paper first. Is you want a cheap server, that is the easiest method to follow.
== Raspberry PI Config ==
RPI 3 - /etc/default/gpsd
DEVICES="/dev/pps0 /dev/ttyAMA0"
GPSD_OPTIONS="-n"
Add to /boot/config.txt
# GPS NTP PPS signal on GPIO pin 18
dtoverlay=pps-gpio,gpiopin=18
# On RPI3, Bluetooth messes up GPIO RS232 header
dtoverlay=pi3-disable-bt
== Raspberry PI issues ==
The raspberry PI ships with gpsd 3.11-3. That version will not grab the PPS signal on RPI less than version 3, and will not work properly at all on a RPI 3. The backport version would only core and not run for me. I built version 3.15-2build1 which I got from NEEDLINK and that worked on all RPI's tested.
== Links ==
* [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt - BUILDING A RASPBERRY PI ZERO GPS NETWORK TIME SERVER FOR UNDER $50]
* [https://arstechnica.com/security/2016/02/using-ipv6-with-linux-youve-likely-been-visited-by-shodan-and-other-scanners/ Using IPv6 with Linux? You’ve likely been visited by Shodan and other scanners]
* [https://openenergymonitor.org/forum-archive/node/12311.html Fix RS-232 Header pins on RPI3]
* [http://www.catb.org/gpsd/gpsd-time-service-howto.html GPSD howto and troubleshooting]
405227848e0b67e95d16ee1770577dd8dac776a4
101
100
2017-04-05T14:38:31Z
Joe
2
/* Building a Stratum 1 NTP server */
wikitext
text/x-wiki
== Introduction ==
I started down this path to build a personal Network Time Protocol (NTP) server because of a story I read '[https://arstechnica.com/security/2016/02/using-ipv6-with-linux-youve-likely-been-visited-by-shodan-and-other-scanners/ Using IPv6 with Linux? You’ve likely been visited by Shodan and other scanners]". Google is reporting that in the US, the availability of IPv6 connectivity for IPv6 is 30% [https://www.google.com/intl/en/ipv6/statistics.html#tab=per-country-ipv6-adoption&tab=per-country-ipv6-adoption Google IPv6 Availability]. The good thing about IPv6 is the space is so huge that scans that worked in the past on IPv4 will no longer be feasible in the IPv6 space. NTP is a great source to leak to IPv6 space since it happens in the background and you don't know your computer is even checking.
I have tried a number of configurations and will list the parts, software, and configurations that I used to make it all work. I have set up normal PC's and various Raspberry Pi (RPI).
== Assumptions ==
When I started, I made some wrong assumptions. I thought I could just use a regular USB GPS unit because I just wanted time to be correct to the second. It turns out that NTP was changed to be more accurate and USB GPS units are just not accurate enough for time keeping. In order to have NTP working correctly, you need a device that can generate a Pulse Per Second ([https://en.wikipedia.org/wiki/Pulse-per-second_signal PPS]) signal. The PPS signal marks the time to milliseconds or better.
The other thing I didn't realize is that you need three time sources. NTP wants to compare time between sources to determine what time is correct. If you have only two sources, ntp does not detect what time is right. With three sources, one of the time sources can act as a tie breaker. If you build your own, you can build three or use two sources from the internet. With a single internal ntp server, that will be good enough for your devices to sync and get time.
== Building a Stratum 1 NTP server ==
I wish I would have read [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt] Paper first. If you want a cheap server, that is the easiest method to follow.
I started with a Garmin 18x LVC GPS Navigator Unit connected to an RS-232 port of a PC as I already had a PC running all the time.
== Raspberry PI Config ==
RPI 3 - /etc/default/gpsd
DEVICES="/dev/pps0 /dev/ttyAMA0"
GPSD_OPTIONS="-n"
Add to /boot/config.txt
# GPS NTP PPS signal on GPIO pin 18
dtoverlay=pps-gpio,gpiopin=18
# On RPI3, Bluetooth messes up GPIO RS232 header
dtoverlay=pi3-disable-bt
== Raspberry PI issues ==
The raspberry PI ships with gpsd 3.11-3. That version will not grab the PPS signal on RPI less than version 3, and will not work properly at all on a RPI 3. The backport version would only core and not run for me. I built version 3.15-2build1 which I got from NEEDLINK and that worked on all RPI's tested.
== Links ==
* [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt - BUILDING A RASPBERRY PI ZERO GPS NETWORK TIME SERVER FOR UNDER $50]
* [https://arstechnica.com/security/2016/02/using-ipv6-with-linux-youve-likely-been-visited-by-shodan-and-other-scanners/ Using IPv6 with Linux? You’ve likely been visited by Shodan and other scanners]
* [https://openenergymonitor.org/forum-archive/node/12311.html Fix RS-232 Header pins on RPI3]
* [http://www.catb.org/gpsd/gpsd-time-service-howto.html GPSD howto and troubleshooting]
6124e50bdd72618b34ab60fd82800848299c1ff9
102
101
2017-04-05T14:46:57Z
Joe
2
/* Building a Stratum 1 NTP server */
wikitext
text/x-wiki
== Introduction ==
I started down this path to build a personal Network Time Protocol (NTP) server because of a story I read '[https://arstechnica.com/security/2016/02/using-ipv6-with-linux-youve-likely-been-visited-by-shodan-and-other-scanners/ Using IPv6 with Linux? You’ve likely been visited by Shodan and other scanners]". Google is reporting that in the US, the availability of IPv6 connectivity for IPv6 is 30% [https://www.google.com/intl/en/ipv6/statistics.html#tab=per-country-ipv6-adoption&tab=per-country-ipv6-adoption Google IPv6 Availability]. The good thing about IPv6 is the space is so huge that scans that worked in the past on IPv4 will no longer be feasible in the IPv6 space. NTP is a great source to leak to IPv6 space since it happens in the background and you don't know your computer is even checking.
I have tried a number of configurations and will list the parts, software, and configurations that I used to make it all work. I have set up normal PC's and various Raspberry Pi (RPI).
== Assumptions ==
When I started, I made some wrong assumptions. I thought I could just use a regular USB GPS unit because I just wanted time to be correct to the second. It turns out that NTP was changed to be more accurate and USB GPS units are just not accurate enough for time keeping. In order to have NTP working correctly, you need a device that can generate a Pulse Per Second ([https://en.wikipedia.org/wiki/Pulse-per-second_signal PPS]) signal. The PPS signal marks the time to milliseconds or better.
The other thing I didn't realize is that you need three time sources. NTP wants to compare time between sources to determine what time is correct. If you have only two sources, ntp does not detect what time is right. With three sources, one of the time sources can act as a tie breaker. If you build your own, you can build three or use two sources from the internet. With a single internal ntp server, that will be good enough for your devices to sync and get time.
== Building a Stratum 1 NTP server ==
I wish I would have read [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt] Paper first. If you want a cheap server, that is the easiest method to follow.
I started with a Garmin 18x LVC GPS Navigator Unit connected to an RS-232 port of a PC as I already had a PC running all the time.
===Parts List ===
I like Amazon, so I will try and give the links to them where possible.
==== PC Build ====
Cost not including PC, about $70
You will need to do some soldering to attach the RS-232 adapter to the GPS
* [https://www.amazon.com/gp/product/B0016O3T7A Garmin 18x LVC GPS Navigator Unit] $68
* RS-232 connector
==== RPI Build with Garmin ====
Cost including RPI 3, about $130
== Raspberry PI Config ==
RPI 3 - /etc/default/gpsd
DEVICES="/dev/pps0 /dev/ttyAMA0"
GPSD_OPTIONS="-n"
Add to /boot/config.txt
# GPS NTP PPS signal on GPIO pin 18
dtoverlay=pps-gpio,gpiopin=18
# On RPI3, Bluetooth messes up GPIO RS232 header
dtoverlay=pi3-disable-bt
== Raspberry PI issues ==
The raspberry PI ships with gpsd 3.11-3. That version will not grab the PPS signal on RPI less than version 3, and will not work properly at all on a RPI 3. The backport version would only core and not run for me. I built version 3.15-2build1 which I got from NEEDLINK and that worked on all RPI's tested.
== Links ==
* [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt - BUILDING A RASPBERRY PI ZERO GPS NETWORK TIME SERVER FOR UNDER $50]
* [https://arstechnica.com/security/2016/02/using-ipv6-with-linux-youve-likely-been-visited-by-shodan-and-other-scanners/ Using IPv6 with Linux? You’ve likely been visited by Shodan and other scanners]
* [https://openenergymonitor.org/forum-archive/node/12311.html Fix RS-232 Header pins on RPI3]
* [http://www.catb.org/gpsd/gpsd-time-service-howto.html GPSD howto and troubleshooting]
4317763b6ded95d0b743ac9b4be11c3050ef2dc2
103
102
2017-04-12T06:10:34Z
Joe
2
/* RPI Build with Garmin */
wikitext
text/x-wiki
== Introduction ==
I started down this path to build a personal Network Time Protocol (NTP) server because of a story I read '[https://arstechnica.com/security/2016/02/using-ipv6-with-linux-youve-likely-been-visited-by-shodan-and-other-scanners/ Using IPv6 with Linux? You’ve likely been visited by Shodan and other scanners]". Google is reporting that in the US, the availability of IPv6 connectivity for IPv6 is 30% [https://www.google.com/intl/en/ipv6/statistics.html#tab=per-country-ipv6-adoption&tab=per-country-ipv6-adoption Google IPv6 Availability]. The good thing about IPv6 is the space is so huge that scans that worked in the past on IPv4 will no longer be feasible in the IPv6 space. NTP is a great source to leak to IPv6 space since it happens in the background and you don't know your computer is even checking.
I have tried a number of configurations and will list the parts, software, and configurations that I used to make it all work. I have set up normal PC's and various Raspberry Pi (RPI).
== Assumptions ==
When I started, I made some wrong assumptions. I thought I could just use a regular USB GPS unit because I just wanted time to be correct to the second. It turns out that NTP was changed to be more accurate and USB GPS units are just not accurate enough for time keeping. In order to have NTP working correctly, you need a device that can generate a Pulse Per Second ([https://en.wikipedia.org/wiki/Pulse-per-second_signal PPS]) signal. The PPS signal marks the time to milliseconds or better.
The other thing I didn't realize is that you need three time sources. NTP wants to compare time between sources to determine what time is correct. If you have only two sources, ntp does not detect what time is right. With three sources, one of the time sources can act as a tie breaker. If you build your own, you can build three or use two sources from the internet. With a single internal ntp server, that will be good enough for your devices to sync and get time.
== Building a Stratum 1 NTP server ==
I wish I would have read [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt] Paper first. If you want a cheap server, that is the easiest method to follow.
I started with a Garmin 18x LVC GPS Navigator Unit connected to an RS-232 port of a PC as I already had a PC running all the time.
===Parts List ===
I like Amazon, so I will try and give the links to them where possible.
==== PC Build ====
Cost not including PC, about $70
You will need to do some soldering to attach the RS-232 adapter to the GPS
* [https://www.amazon.com/gp/product/B0016O3T7A Garmin 18x LVC GPS Navigator Unit] $68
* RS-232 connector
==== RPI Build with Garmin ====
* [https://www.amazon.com/CanaKit-Raspberry-Micro-Supply-Listed/dp/B01C6FFNY4 CanaKit Raspberry Pi 3 with 2.5A Micro USB Power Supply]
Cost including RPI 3, about $130
==== RPI Zero W with ====
* [https://www.amazon.com/gp/product/B01MRNN3YZ Gowoops GPS Module U-blox NEO-6M with 3m Active Antenna for Arduino STM32 51 Single Chip Microcomputer] $26
* [https://www.amazon.com/Raspberry-Pi-Zero-Wireless-Official/dp/B06XD18H6K Raspberry Pi Zero W (Wireless) & Official Case] $23
* [https://www.amazon.com/CanaKit-Raspberry-Supply-Adapter-Charger/dp/B00MARDJZ4 CanaKit 5V 2.5A Raspberry Pi 3 Power Supply / Adapter / Charger] $10
* Micro SD Memory card - $10 & up ( 8GB is more than enough )
Cost about $70
== Raspberry PI Config ==
RPI 3 - /etc/default/gpsd
DEVICES="/dev/pps0 /dev/ttyAMA0"
GPSD_OPTIONS="-n"
Add to /boot/config.txt
# GPS NTP PPS signal on GPIO pin 18
dtoverlay=pps-gpio,gpiopin=18
# On RPI3, Bluetooth messes up GPIO RS232 header
dtoverlay=pi3-disable-bt
== Raspberry PI issues ==
The raspberry PI ships with gpsd 3.11-3. That version will not grab the PPS signal on RPI less than version 3, and will not work properly at all on a RPI 3. The backport version would only core and not run for me. I built version 3.15-2build1 which I got from NEEDLINK and that worked on all RPI's tested.
== Links ==
* [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt - BUILDING A RASPBERRY PI ZERO GPS NETWORK TIME SERVER FOR UNDER $50]
* [https://arstechnica.com/security/2016/02/using-ipv6-with-linux-youve-likely-been-visited-by-shodan-and-other-scanners/ Using IPv6 with Linux? You’ve likely been visited by Shodan and other scanners]
* [https://openenergymonitor.org/forum-archive/node/12311.html Fix RS-232 Header pins on RPI3]
* [http://www.catb.org/gpsd/gpsd-time-service-howto.html GPSD howto and troubleshooting]
ba3a1da0bc5addd24a90a7920d8b68f4d7cbd72e
104
103
2017-04-12T06:12:07Z
Joe
2
/* PC Build */
wikitext
text/x-wiki
== Introduction ==
I started down this path to build a personal Network Time Protocol (NTP) server because of a story I read '[https://arstechnica.com/security/2016/02/using-ipv6-with-linux-youve-likely-been-visited-by-shodan-and-other-scanners/ Using IPv6 with Linux? You’ve likely been visited by Shodan and other scanners]". Google is reporting that in the US, the availability of IPv6 connectivity for IPv6 is 30% [https://www.google.com/intl/en/ipv6/statistics.html#tab=per-country-ipv6-adoption&tab=per-country-ipv6-adoption Google IPv6 Availability]. The good thing about IPv6 is the space is so huge that scans that worked in the past on IPv4 will no longer be feasible in the IPv6 space. NTP is a great source to leak to IPv6 space since it happens in the background and you don't know your computer is even checking.
I have tried a number of configurations and will list the parts, software, and configurations that I used to make it all work. I have set up normal PC's and various Raspberry Pi (RPI).
== Assumptions ==
When I started, I made some wrong assumptions. I thought I could just use a regular USB GPS unit because I just wanted time to be correct to the second. It turns out that NTP was changed to be more accurate and USB GPS units are just not accurate enough for time keeping. In order to have NTP working correctly, you need a device that can generate a Pulse Per Second ([https://en.wikipedia.org/wiki/Pulse-per-second_signal PPS]) signal. The PPS signal marks the time to milliseconds or better.
The other thing I didn't realize is that you need three time sources. NTP wants to compare time between sources to determine what time is correct. If you have only two sources, ntp does not detect what time is right. With three sources, one of the time sources can act as a tie breaker. If you build your own, you can build three or use two sources from the internet. With a single internal ntp server, that will be good enough for your devices to sync and get time.
== Building a Stratum 1 NTP server ==
I wish I would have read [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt] Paper first. If you want a cheap server, that is the easiest method to follow.
I started with a Garmin 18x LVC GPS Navigator Unit connected to an RS-232 port of a PC as I already had a PC running all the time.
===Parts List ===
I like Amazon, so I will try and give the links to them where possible.
==== PC Build ====
Cost not including PC, about $70
You will need to do some soldering to attach the RS-232 adapter to the GPS
* [https://www.amazon.com/gp/product/B0016O3T7A Garmin 18x LVC GPS Navigator Unit] $68
* RS-232 connector
* USB cable that you can use to power the GPS. You will need to cut this cable.
==== RPI Build with Garmin ====
* [https://www.amazon.com/CanaKit-Raspberry-Micro-Supply-Listed/dp/B01C6FFNY4 CanaKit Raspberry Pi 3 with 2.5A Micro USB Power Supply]
Cost including RPI 3, about $130
==== RPI Zero W with ====
* [https://www.amazon.com/gp/product/B01MRNN3YZ Gowoops GPS Module U-blox NEO-6M with 3m Active Antenna for Arduino STM32 51 Single Chip Microcomputer] $26
* [https://www.amazon.com/Raspberry-Pi-Zero-Wireless-Official/dp/B06XD18H6K Raspberry Pi Zero W (Wireless) & Official Case] $23
* [https://www.amazon.com/CanaKit-Raspberry-Supply-Adapter-Charger/dp/B00MARDJZ4 CanaKit 5V 2.5A Raspberry Pi 3 Power Supply / Adapter / Charger] $10
* Micro SD Memory card - $10 & up ( 8GB is more than enough )
Cost about $70
== Raspberry PI Config ==
RPI 3 - /etc/default/gpsd
DEVICES="/dev/pps0 /dev/ttyAMA0"
GPSD_OPTIONS="-n"
Add to /boot/config.txt
# GPS NTP PPS signal on GPIO pin 18
dtoverlay=pps-gpio,gpiopin=18
# On RPI3, Bluetooth messes up GPIO RS232 header
dtoverlay=pi3-disable-bt
== Raspberry PI issues ==
The raspberry PI ships with gpsd 3.11-3. That version will not grab the PPS signal on RPI less than version 3, and will not work properly at all on a RPI 3. The backport version would only core and not run for me. I built version 3.15-2build1 which I got from NEEDLINK and that worked on all RPI's tested.
== Links ==
* [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt - BUILDING A RASPBERRY PI ZERO GPS NETWORK TIME SERVER FOR UNDER $50]
* [https://arstechnica.com/security/2016/02/using-ipv6-with-linux-youve-likely-been-visited-by-shodan-and-other-scanners/ Using IPv6 with Linux? You’ve likely been visited by Shodan and other scanners]
* [https://openenergymonitor.org/forum-archive/node/12311.html Fix RS-232 Header pins on RPI3]
* [http://www.catb.org/gpsd/gpsd-time-service-howto.html GPSD howto and troubleshooting]
4f3eebf9ef1cb83742bb61c44a113ffa5550d758
105
104
2017-04-12T06:12:38Z
Joe
2
/* RPI Zero W with */
wikitext
text/x-wiki
== Introduction ==
I started down this path to build a personal Network Time Protocol (NTP) server because of a story I read '[https://arstechnica.com/security/2016/02/using-ipv6-with-linux-youve-likely-been-visited-by-shodan-and-other-scanners/ Using IPv6 with Linux? You’ve likely been visited by Shodan and other scanners]". Google is reporting that in the US, the availability of IPv6 connectivity for IPv6 is 30% [https://www.google.com/intl/en/ipv6/statistics.html#tab=per-country-ipv6-adoption&tab=per-country-ipv6-adoption Google IPv6 Availability]. The good thing about IPv6 is the space is so huge that scans that worked in the past on IPv4 will no longer be feasible in the IPv6 space. NTP is a great source to leak to IPv6 space since it happens in the background and you don't know your computer is even checking.
I have tried a number of configurations and will list the parts, software, and configurations that I used to make it all work. I have set up normal PC's and various Raspberry Pi (RPI).
== Assumptions ==
When I started, I made some wrong assumptions. I thought I could just use a regular USB GPS unit because I just wanted time to be correct to the second. It turns out that NTP was changed to be more accurate and USB GPS units are just not accurate enough for time keeping. In order to have NTP working correctly, you need a device that can generate a Pulse Per Second ([https://en.wikipedia.org/wiki/Pulse-per-second_signal PPS]) signal. The PPS signal marks the time to milliseconds or better.
The other thing I didn't realize is that you need three time sources. NTP wants to compare time between sources to determine what time is correct. If you have only two sources, ntp does not detect what time is right. With three sources, one of the time sources can act as a tie breaker. If you build your own, you can build three or use two sources from the internet. With a single internal ntp server, that will be good enough for your devices to sync and get time.
== Building a Stratum 1 NTP server ==
I wish I would have read [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt] Paper first. If you want a cheap server, that is the easiest method to follow.
I started with a Garmin 18x LVC GPS Navigator Unit connected to an RS-232 port of a PC as I already had a PC running all the time.
===Parts List ===
I like Amazon, so I will try and give the links to them where possible.
==== PC Build ====
Cost not including PC, about $70
You will need to do some soldering to attach the RS-232 adapter to the GPS
* [https://www.amazon.com/gp/product/B0016O3T7A Garmin 18x LVC GPS Navigator Unit] $68
* RS-232 connector
* USB cable that you can use to power the GPS. You will need to cut this cable.
==== RPI Build with Garmin ====
* [https://www.amazon.com/CanaKit-Raspberry-Micro-Supply-Listed/dp/B01C6FFNY4 CanaKit Raspberry Pi 3 with 2.5A Micro USB Power Supply]
Cost including RPI 3, about $130
==== RPI Zero W with U-blox NEO-6M GPS Module ====
* [https://www.amazon.com/gp/product/B01MRNN3YZ Gowoops GPS Module U-blox NEO-6M with 3m Active Antenna for Arduino STM32 51 Single Chip Microcomputer] $26
* [https://www.amazon.com/Raspberry-Pi-Zero-Wireless-Official/dp/B06XD18H6K Raspberry Pi Zero W (Wireless) & Official Case] $23
* [https://www.amazon.com/CanaKit-Raspberry-Supply-Adapter-Charger/dp/B00MARDJZ4 CanaKit 5V 2.5A Raspberry Pi 3 Power Supply / Adapter / Charger] $10
* Micro SD Memory card - $10 & up ( 8GB is more than enough )
Cost about $70
== Raspberry PI Config ==
RPI 3 - /etc/default/gpsd
DEVICES="/dev/pps0 /dev/ttyAMA0"
GPSD_OPTIONS="-n"
Add to /boot/config.txt
# GPS NTP PPS signal on GPIO pin 18
dtoverlay=pps-gpio,gpiopin=18
# On RPI3, Bluetooth messes up GPIO RS232 header
dtoverlay=pi3-disable-bt
== Raspberry PI issues ==
The raspberry PI ships with gpsd 3.11-3. That version will not grab the PPS signal on RPI less than version 3, and will not work properly at all on a RPI 3. The backport version would only core and not run for me. I built version 3.15-2build1 which I got from NEEDLINK and that worked on all RPI's tested.
== Links ==
* [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt - BUILDING A RASPBERRY PI ZERO GPS NETWORK TIME SERVER FOR UNDER $50]
* [https://arstechnica.com/security/2016/02/using-ipv6-with-linux-youve-likely-been-visited-by-shodan-and-other-scanners/ Using IPv6 with Linux? You’ve likely been visited by Shodan and other scanners]
* [https://openenergymonitor.org/forum-archive/node/12311.html Fix RS-232 Header pins on RPI3]
* [http://www.catb.org/gpsd/gpsd-time-service-howto.html GPSD howto and troubleshooting]
1837c35ce1119820726f97faf6454638d8732c7c
OVirt the Easy way
0
20
106
2017-09-20T16:57:26Z
Joe
2
Created page with "Configuring oVirt to run as a high available system on your own cluster is not hard once you have the secret handshake for installing. I will describe what worked best for me..."
wikitext
text/x-wiki
Configuring oVirt to run as a high available system on your own cluster is not hard once you have the secret handshake for installing. I will describe what worked best for me and some fixes for errors that occurred during my installs.
1. Get the oVirt node ISO and put it on a USB or CD https://www.ovirt.org/node/
2. Boot the image on a blank system and select Install.
2.1 After select language, configure the network adapter first. Use the network screen, enter a hostname.
2.1.1
b015b988af89cae8ba01aa201332619c3b9c53ca
107
106
2017-09-20T16:57:47Z
Joe
2
wikitext
text/x-wiki
Configuring oVirt to run as a high available system on your own cluster is not hard once you have the secret handshake for installing. I will describe what worked best for me and some fixes for errors that occurred during my installs.
1. Get the oVirt node ISO and put it on a USB or CD https://www.ovirt.org/node/
2. Boot the image on a blank system and select Install.
2.1 After select language, configure the network adapter first. Use the network screen, enter a hostname.
2.1.1
13217b1877030f2060bfdab6f922ef9f763f81d8
OpenWRT
0
21
108
2019-02-04T14:40:17Z
Joe
2
Created page with "OpenWRT Notes: == Networking == eth0 = br-lan eth1 = WAN Networks are determined by slot number when create a VM. The order of the slots determine which eth number they g..."
wikitext
text/x-wiki
OpenWRT Notes:
== Networking ==
eth0 = br-lan
eth1 = WAN
Networks are determined by slot number when create a VM. The order of the slots determine which eth number they get. Order in XML and MAC number do not play a role.
LAN = <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
WAN = <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
It doesn't matter the order in the XML file.
== Upgrade ==
Link for image https://downloads.openwrt.org/releases/18.06.2/targets/x86/64/
# https://downloads.openwrt.org/releases/
sysupgrade file
== Packages to Install ==
Get package list and install packages
opkg update
opkg install curl luci-app-openvpn luci-i18n-tinyproxy-en luci-ssl openvpn-openssl screen tinyproxy
Current list of useful packages.
curl
luci-app-openvpn
luci-i18n-tinyproxy-en
luci-ssl
openvpn-openssl
screen
tinyproxy
== Network and Firewall Setup for PIA ==
Add to /etc/config/network
config interface 'pia'
option proto 'none'
option ifname 'pia'
Change in /etc/config/firewall from wan to pia. This is the kill switch that prevents the lan from talking out through the wan
config forwarding
option src 'lan'
option dest 'pia'
Add Zone in same file
config zone
option name 'pia'
option network 'pia'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
Add rule for wan access since kill switch forwarding is in place
config rule
option enabled '1'
option target 'ACCEPT'
option src 'lan'
option name 'forwardIP'
option dest 'wan'
option dest_ip '192.168.2.1'
a789f34aae76a3972f3afab6322a5bbdad370535
RHEL
0
9
109
27
2019-08-01T16:16:42Z
Joe
2
wikitext
text/x-wiki
Simple tricks for RHEL that are common to me.
== Disable ipv6 ==
RHEL 7
1. Append below lines in /etc/sysctl.conf:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
Then run
sysctl -p
RHEL 5.4 has an easy way to disable ipv6. The other methods don't work when the iscsi driver is loaded. To disable:
echo "options ipv6 disable=1" > /etc/modprobe.d/disable-ipv6
http://planet.admon.org/2009/09/how-to-disable-the-ipv6-protocol/
== Links ==
http://planet.admon.org/2009/09/how-to-disable-the-ipv6-protocol/ - How to disable the IPv6 protocol?
3397afa06fab4542a13faecc7346775fc5440014
How to build a Stratum 1 NTP server
0
19
110
105
2020-02-01T00:13:47Z
Admin
1
/* Raspberry PI Config */
wikitext
text/x-wiki
== Introduction ==
I started down this path to build a personal Network Time Protocol (NTP) server because of a story I read '[https://arstechnica.com/security/2016/02/using-ipv6-with-linux-youve-likely-been-visited-by-shodan-and-other-scanners/ Using IPv6 with Linux? You’ve likely been visited by Shodan and other scanners]". Google is reporting that in the US, the availability of IPv6 connectivity for IPv6 is 30% [https://www.google.com/intl/en/ipv6/statistics.html#tab=per-country-ipv6-adoption&tab=per-country-ipv6-adoption Google IPv6 Availability]. The good thing about IPv6 is the space is so huge that scans that worked in the past on IPv4 will no longer be feasible in the IPv6 space. NTP is a great source to leak to IPv6 space since it happens in the background and you don't know your computer is even checking.
I have tried a number of configurations and will list the parts, software, and configurations that I used to make it all work. I have set up normal PC's and various Raspberry Pi (RPI).
== Assumptions ==
When I started, I made some wrong assumptions. I thought I could just use a regular USB GPS unit because I just wanted time to be correct to the second. It turns out that NTP was changed to be more accurate and USB GPS units are just not accurate enough for time keeping. In order to have NTP working correctly, you need a device that can generate a Pulse Per Second ([https://en.wikipedia.org/wiki/Pulse-per-second_signal PPS]) signal. The PPS signal marks the time to milliseconds or better.
The other thing I didn't realize is that you need three time sources. NTP wants to compare time between sources to determine what time is correct. If you have only two sources, ntp does not detect what time is right. With three sources, one of the time sources can act as a tie breaker. If you build your own, you can build three or use two sources from the internet. With a single internal ntp server, that will be good enough for your devices to sync and get time.
== Building a Stratum 1 NTP server ==
I wish I would have read [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt] Paper first. If you want a cheap server, that is the easiest method to follow.
I started with a Garmin 18x LVC GPS Navigator Unit connected to an RS-232 port of a PC as I already had a PC running all the time.
===Parts List ===
I like Amazon, so I will try and give the links to them where possible.
==== PC Build ====
Cost not including PC, about $70
You will need to do some soldering to attach the RS-232 adapter to the GPS
* [https://www.amazon.com/gp/product/B0016O3T7A Garmin 18x LVC GPS Navigator Unit] $68
* RS-232 connector
* USB cable that you can use to power the GPS. You will need to cut this cable.
==== RPI Build with Garmin ====
* [https://www.amazon.com/CanaKit-Raspberry-Micro-Supply-Listed/dp/B01C6FFNY4 CanaKit Raspberry Pi 3 with 2.5A Micro USB Power Supply]
Cost including RPI 3, about $130
==== RPI Zero W with U-blox NEO-6M GPS Module ====
* [https://www.amazon.com/gp/product/B01MRNN3YZ Gowoops GPS Module U-blox NEO-6M with 3m Active Antenna for Arduino STM32 51 Single Chip Microcomputer] $26
* [https://www.amazon.com/Raspberry-Pi-Zero-Wireless-Official/dp/B06XD18H6K Raspberry Pi Zero W (Wireless) & Official Case] $23
* [https://www.amazon.com/CanaKit-Raspberry-Supply-Adapter-Charger/dp/B00MARDJZ4 CanaKit 5V 2.5A Raspberry Pi 3 Power Supply / Adapter / Charger] $10
* Micro SD Memory card - $10 & up ( 8GB is more than enough )
Cost about $70
== Raspberry PI Config ==
RPI 3 - /etc/default/gpsd
DEVICES="/dev/pps0 /dev/ttyAMA0"
GPSD_OPTIONS="-n"
Add to /boot/config.txt
# GPS NTP PPS signal on GPIO pin 18
dtoverlay=pps-gpio,gpiopin=18
# On RPI3, Bluetooth messes up GPIO RS232 header
dtoverlay=pi3-disable-bt
Remove from /boot/cmdline.txt
console=serial0,115200
== Raspberry PI issues ==
The raspberry PI ships with gpsd 3.11-3. That version will not grab the PPS signal on RPI less than version 3, and will not work properly at all on a RPI 3. The backport version would only core and not run for me. I built version 3.15-2build1 which I got from NEEDLINK and that worked on all RPI's tested.
== Links ==
* [http://www.satsignal.eu/raspberry-pi/Schmidt-RPZ-NTP-2016.pdf Richard E. Schmidt - BUILDING A RASPBERRY PI ZERO GPS NETWORK TIME SERVER FOR UNDER $50]
* [https://arstechnica.com/security/2016/02/using-ipv6-with-linux-youve-likely-been-visited-by-shodan-and-other-scanners/ Using IPv6 with Linux? You’ve likely been visited by Shodan and other scanners]
* [https://openenergymonitor.org/forum-archive/node/12311.html Fix RS-232 Header pins on RPI3]
* [http://www.catb.org/gpsd/gpsd-time-service-howto.html GPSD howto and troubleshooting]
62dca0e3dfbec24b427f0137cb151d46a090b1c1
Nginx
0
22
112
2023-12-12T21:26:47Z
Admin
1
Created page with "=== Some cool tips and tricks for nginx === It you would like to get return the IP that the client is calling the web server from, you can do it without writing any scripts. Adding the below to your nginx config file, you can get the IP by going to http://YOURHOST/ip location /ip { default_type text/html; return 200 $remote_addr; }"
wikitext
text/x-wiki
=== Some cool tips and tricks for nginx ===
It you would like to get return the IP that the client is calling the web server from, you can do it without writing any scripts. Adding the below to your nginx config file, you can get the IP by going to http://YOURHOST/ip
location /ip {
default_type text/html;
return 200 $remote_addr;
}
4caf05d65477d120b9bb870c672831cf782aefab